You are here

public static function GridStackFormatterTrait::isApplicable in GridStack 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/GridStackFormatterTrait.php \Drupal\gridstack\Plugin\Field\FieldFormatter\GridStackFormatterTrait::isApplicable()
3 methods override GridStackFormatterTrait::isApplicable()
GridStackFileFormatter::isApplicable in src/Plugin/Field/FieldFormatter/GridStackFileFormatter.php
GridStackMediaFormatter::isApplicable in src/Plugin/Field/FieldFormatter/GridStackMediaFormatter.php
GridStackParagraphsFormatter::isApplicable in src/Plugin/Field/FieldFormatter/GridStackParagraphsFormatter.php

File

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

Class

GridStackFormatterTrait
A Trait common for gridstack formatters.

Namespace

Drupal\gridstack\Plugin\Field\FieldFormatter

Code

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