class GridStackParagraphsFormatter in GridStack 8.2
Same name and namespace in other branches
- 8 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 uses GridStackFormatterTrait, GridStackFormatterViewTrait
- 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';
}
}