You are here

public static function SlickFileFormatter::isApplicable in Slick Carousel 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldFormatter/SlickFileFormatter.php \Drupal\slick\Plugin\Field\FieldFormatter\SlickFileFormatter::isApplicable()

Overrides SlickFormatterTrait::isApplicable

File

src/Plugin/Field/FieldFormatter/SlickFileFormatter.php, line 79

Class

SlickFileFormatter
Plugin implementation of the 'Slick File' formatter to get ME within images.

Namespace

Drupal\slick\Plugin\Field\FieldFormatter

Code

public static function isApplicable(FieldDefinitionInterface $field_definition) {
  $storage = $field_definition
    ->getFieldStorageDefinition();
  return $storage
    ->isMultiple() && $storage
    ->getSetting('target_type') === 'file';
}