public static function IsApplicable::isApplicable in Client-side Hierarchical Select 8
Same name and namespace in other branches
- 8.3 src/IsApplicable.php \Drupal\cshs\IsApplicable::isApplicable()
- 8.2 src/IsApplicable.php \Drupal\cshs\IsApplicable::isApplicable()
1 call to IsApplicable::isApplicable()
- CshsWidget::isApplicable in src/
Plugin/ Field/ FieldWidget/ CshsWidget.php - Returns if the widget can be used for the provided field.
File
- src/
IsApplicable.php, line 15
Class
- IsApplicable
- Class IsApplicable.
Namespace
Drupal\cshsCode
public static function isApplicable(FieldDefinitionInterface $field_definition) : bool {
return 'taxonomy_term' === $field_definition
->getFieldStorageDefinition()
->getSetting('target_type');
}