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