You are here

public static function SlickFormatterTrait::isApplicable in Slick Carousel 8

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

File

src/Plugin/Field/FieldFormatter/SlickFormatterTrait.php, line 58

Class

SlickFormatterTrait
A Trait common for slick formatters.

Namespace

Drupal\slick\Plugin\Field\FieldFormatter

Code

public static function isApplicable(FieldDefinitionInterface $field_definition) {
  return $field_definition
    ->getFieldStorageDefinition()
    ->isMultiple();
}