You are here

public function FormatterBase::getScopedFormElements in Blazy 7

Defines the scope for the form elements.

4 calls to FormatterBase::getScopedFormElements()
BlazyFormatterBase::getScopedFormElements in src/Plugin/Field/FieldFormatter/BlazyFormatterBase.php
Defines the scope for the form elements.
BlazyTextFormatter::getScopedFormElements in src/Plugin/Field/FieldFormatter/BlazyTextFormatter.php
Defines the scope for the form elements.
FormatterBase::buildSettingsForm in src/Plugin/Field/FieldFormatter/FormatterBase.php
Implements hook_field_formatter_settings_form().
FormatterBase::buildSettingsSummary in src/Plugin/Field/FieldFormatter/FormatterBase.php
2 methods override FormatterBase::getScopedFormElements()
BlazyFormatterBase::getScopedFormElements in src/Plugin/Field/FieldFormatter/BlazyFormatterBase.php
Defines the scope for the form elements.
BlazyTextFormatter::getScopedFormElements in src/Plugin/Field/FieldFormatter/BlazyTextFormatter.php
Defines the scope for the form elements.

File

src/Plugin/Field/FieldFormatter/FormatterBase.php, line 287

Class

FormatterBase
Base class for blazy/slick image, and file formatters.

Namespace

Drupal\blazy\Plugin\Field\FieldFormatter

Code

public function getScopedFormElements() {
  return [
    'forms' => $this
      ->getRequiredForms(),
    'entity_type_id' => $this->entityType,
    'field_name' => $this->fieldName,
    'field_type' => $this->fieldType,
    'instance' => $this->fieldInstance,
    'plugin_id' => $this->pluginId,
    'settings' => $this
      ->getSettings(),
    'target_type' => $this->targetType,
  ];
}