public function AutocompleteTagsWidget::formElement in Entity reference 8
Implements Drupal\field\Plugin\Type\Widget\WidgetInterface::formElement().
Overrides AutocompleteWidgetBase::formElement
File
- lib/
Drupal/ entityreference/ Plugin/ field/ widget/ AutocompleteTagsWidget.php, line 45 - Definition of Drupal\entityreference\Plugin\field\widget\AutocompleteTagsWidget.
Class
- AutocompleteTagsWidget
- Plugin implementation of the 'entityreference autocomplete-tags' widget.
Namespace
Drupal\entityreference\Plugin\field\widgetCode
public function formElement(array $items, $delta, array $element, $langcode, array &$form, array &$form_state) {
return $this
->prepareElement($items, $delta, $element, $langcode, $form, $form_state, 'entityreference/autocomplete/tags');
}