You are here

public function BlazyTextFormatter::getScopedFormElements in Blazy 7

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/BlazyTextFormatter.php \Drupal\blazy\Plugin\Field\FieldFormatter\BlazyTextFormatter::getScopedFormElements()

Defines the scope for the form elements.

Overrides FormatterBase::getScopedFormElements

File

src/Plugin/Field/FieldFormatter/BlazyTextFormatter.php, line 108

Class

BlazyTextFormatter
Plugin implementation of the 'Blazy Text' formatter to have a grid of texts.

Namespace

Drupal\blazy\Plugin\Field\FieldFormatter

Code

public function getScopedFormElements() {
  return [
    'grid_required' => $this->isMultiple,
    'no_image_style' => TRUE,
    'no_layouts' => TRUE,
    'responsive_image' => FALSE,
    'style' => TRUE,
  ] + parent::getScopedFormElements();
}