Issue #3508822: Property constraints validation adding errors to the field element instead of just the property
1 unresolved thread
Closes #3508822
Merge request reports
Activity
- Resolved by Christian López Espínola
- Resolved by Christian López Espínola
- Resolved by Christian López Espínola
344 345 return $changed; 345 346 } 346 347 348 /** 349 * {@inheritdoc} 350 */ 351 public function errorElement(array $element, ConstraintViolationInterface $error, array $form, FormStateInterface $form_state) { 352 $element = parent::errorElement($element, $error, $form, $form_state); 353 354 $property_path_array = explode('.', $error->getPropertyPath()); 355 return ($element === FALSE) ? FALSE : $element[$property_path_array[1]];
Please register or sign in to reply