class GridStackParagraphsFormatter in GridStack 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/GridStackParagraphsFormatter.php \Drupal\gridstack\Plugin\Field\FieldFormatter\GridStackParagraphsFormatter
Plugin implementation of the 'GridStack Paragraphs' formatter.
Hierarchy
- class \Drupal\gridstack\Plugin\Field\FieldFormatter\GridStackEntityFormatterBase extends \Drupal\blazy\Dejavu\BlazyEntityBase implements ContainerFactoryPluginInterface uses GridStackFormatterTrait
- class \Drupal\gridstack\Plugin\Field\FieldFormatter\GridStackParagraphsFormatter
Expanded class hierarchy of GridStackParagraphsFormatter
File
- src/
Plugin/ Field/ FieldFormatter/ GridStackParagraphsFormatter.php, line 10
Namespace
Drupal\gridstack\Plugin\Field\FieldFormatterView source
class GridStackParagraphsFormatter extends GridStackEntityFormatterBase {
/**
* {@inheritdoc}
*/
public static function isApplicable(FieldDefinitionInterface $field_definition) {
$storage = $field_definition
->getFieldStorageDefinition();
return $storage
->isMultiple() && $storage
->getSetting('target_type') === 'paragraph';
}
}