public static function BlazyTextFormatter::isApplicable in Blazy 8.2
Returns if the formatter 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 formatter can be used, FALSE otherwise.
Overrides FormatterBase::isApplicable
File
- src/
Plugin/ Field/ FieldFormatter/ BlazyTextFormatter.php, line 107
Class
- BlazyTextFormatter
- Plugin implementation of the 'Blazy Grid Text' formatter.
Namespace
Drupal\blazy\Plugin\Field\FieldFormatterCode
public static function isApplicable(FieldDefinitionInterface $field_definition) {
return $field_definition
->getFieldStorageDefinition()
->isMultiple();
}