You are here

public static function SuperTermReferenceAutocompleteWidget::isApplicable in Super Term Reference Autocomplete Widget 8

Returns if the widget can be used for the provided field.

Parameters

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition that should be checked.

Return value

bool TRUE if the widget can be used, FALSE otherwise.

Overrides WidgetBase::isApplicable

File

src/Plugin/Field/FieldWidget/SuperTermReferenceAutocompleteWidget.php, line 36

Class

SuperTermReferenceAutocompleteWidget
Plugin implementation of the 'entity_reference_autocomplete_tags' widget.

Namespace

Drupal\straw\Plugin\Field\FieldWidget

Code

public static function isApplicable(FieldDefinitionInterface $field_definition) {
  return $field_definition
    ->getSetting('handler') === 'straw';
}