IsApplicable.php in Client-side Hierarchical Select 8
Same filename and directory in other branches
Namespace
Drupal\cshsFile
src/IsApplicable.phpView source
<?php
namespace Drupal\cshs;
use Drupal\Core\Field\FieldDefinitionInterface;
/**
* Class IsApplicable.
*/
trait IsApplicable {
/**
* {@inheritdoc}
*/
public static function isApplicable(FieldDefinitionInterface $field_definition) : bool {
return 'taxonomy_term' === $field_definition
->getFieldStorageDefinition()
->getSetting('target_type');
}
}
Traits
Name![]() |
Description |
---|---|
IsApplicable | Class IsApplicable. |