public static function SlickParagraphsVanillaFormatter::isApplicable in Slick Paragraphs 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/SlickParagraphsVanillaFormatter.php \Drupal\slick_paragraphs\Plugin\Field\FieldFormatter\SlickParagraphsVanillaFormatter::isApplicable()
File
- src/
Plugin/ Field/ FieldFormatter/ SlickParagraphsVanillaFormatter.php, line 46
Class
- SlickParagraphsVanillaFormatter
- Plugin implementation of the 'Slick Paragraphs Vanilla' formatter.
Namespace
Drupal\slick_paragraphs\Plugin\Field\FieldFormatterCode
public static function isApplicable(FieldDefinitionInterface $field_definition) {
$storage = $field_definition
->getFieldStorageDefinition();
return $storage
->isMultiple() && $storage
->getSetting('target_type') === 'paragraph';
}