You are here

public function BlazyFormatterBase::getScopedFormElements in Blazy 7

Defines the scope for the form elements.

Overrides FormatterBase::getScopedFormElements

2 calls to BlazyFormatterBase::getScopedFormElements()
BlazyEntityBase::getScopedFormElements in src/Plugin/Field/FieldFormatter/BlazyEntityBase.php
Defines the scope for the form elements.
BlazyFileFormatter::getScopedFormElements in src/Plugin/Field/FieldFormatter/BlazyFileFormatter.php
Defines the scope for the form elements.
2 methods override BlazyFormatterBase::getScopedFormElements()
BlazyEntityBase::getScopedFormElements in src/Plugin/Field/FieldFormatter/BlazyEntityBase.php
Defines the scope for the form elements.
BlazyFileFormatter::getScopedFormElements in src/Plugin/Field/FieldFormatter/BlazyFileFormatter.php
Defines the scope for the form elements.

File

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

Class

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

Namespace

Drupal\blazy\Plugin\Field\FieldFormatter

Code

public function getScopedFormElements() {
  return [
    'background' => TRUE,
    'breakpoints' => BlazyDefault::getConstantBreakpoints(),
    'box_captions' => TRUE,
    'namespace' => 'blazy',
    'style' => $this->isMultiple,
    'thumbnail_style' => TRUE,
    'captions' => [
      'title' => t('Title'),
      'alt' => t('Alt'),
    ],
  ] + parent::getScopedFormElements();
}