public function AutocompleteWidgetBase::errorElement in Entity reference 8
Implements Drupal\field\Plugin\Type\Widget\WidgetInterface::errorElement().
File
- lib/
Drupal/ entityreference/ Plugin/ field/ widget/ AutocompleteWidgetBase.php, line 95 - Definition of Drupal\entityreference\Plugin\field\widget\AutocompleteWidgetBase.
Class
- AutocompleteWidgetBase
- Parent plugin for entity-reference autocomplete widgets.
Namespace
Drupal\entityreference\Plugin\field\widgetCode
public function errorElement(array $element, array $error, array $form, array &$form_state) {
return $element['target_id'];
}