public static function SlickFileFormatter::isApplicable in Slick Carousel 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/SlickFileFormatter.php \Drupal\slick\Plugin\Field\FieldFormatter\SlickFileFormatter::isApplicable()
Overrides SlickFormatterTrait::isApplicable
File
- src/
Plugin/ Field/ FieldFormatter/ SlickFileFormatter.php, line 39
Class
- SlickFileFormatter
- Plugin implementation of the 'Slick File' formatter to get ME within images.
Namespace
Drupal\slick\Plugin\Field\FieldFormatterCode
public static function isApplicable(FieldDefinitionInterface $field_definition) {
$storage = $field_definition
->getFieldStorageDefinition();
return $storage
->isMultiple() && $storage
->getSetting('target_type') === 'file';
}