You are here

public function BlazyFormatterBase::getRequiredForms in Blazy 7

Returns required form elements for the current formatter.

Overrides FormatterBase::getRequiredForms

2 calls to BlazyFormatterBase::getRequiredForms()
BlazyEntityReferenceBase::getRequiredForms in src/Plugin/Field/FieldFormatter/BlazyEntityReferenceBase.php
Returns required form elements for the current formatter.
BlazyFileFormatter::getRequiredForms in src/Plugin/Field/FieldFormatter/BlazyFileFormatter.php
Returns required form elements for the current formatter.
2 methods override BlazyFormatterBase::getRequiredForms()
BlazyEntityReferenceBase::getRequiredForms in src/Plugin/Field/FieldFormatter/BlazyEntityReferenceBase.php
Returns required form elements for the current formatter.
BlazyFileFormatter::getRequiredForms in src/Plugin/Field/FieldFormatter/BlazyFileFormatter.php
Returns required form elements for the current formatter.

File

src/Plugin/Field/FieldFormatter/BlazyFormatterBase.php, line 49

Class

BlazyFormatterBase
Base class for blazy-related modules (slick, etc.).

Namespace

Drupal\blazy\Plugin\Field\FieldFormatter

Code

public function getRequiredForms() {
  return [
    'grid' => $this->isMultiple,
    'image_style' => TRUE,
    'media_switch' => TRUE,
  ];
}