trait IsApplicable in Client-side Hierarchical Select 8
Same name and namespace in other branches
- 8.3 src/IsApplicable.php \Drupal\cshs\IsApplicable
- 8.2 src/IsApplicable.php \Drupal\cshs\IsApplicable
Class IsApplicable.
Hierarchy
- trait \Drupal\cshs\IsApplicable
2 files declare their use of IsApplicable
- CshsFormatterBase.php in src/
Plugin/ Field/ FieldFormatter/ CshsFormatterBase.php - CshsWidget.php in src/
Plugin/ Field/ FieldWidget/ CshsWidget.php
File
- src/
IsApplicable.php, line 10
Namespace
Drupal\cshsView source
trait IsApplicable {
/**
* {@inheritdoc}
*/
public static function isApplicable(FieldDefinitionInterface $field_definition) : bool {
return 'taxonomy_term' === $field_definition
->getFieldStorageDefinition()
->getSetting('target_type');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
IsApplicable:: |
public static | function |