You are here

public function BlazyEntityBase::settingsForm in Blazy 7

Implements hook_field_formatter_settings_form().

Overrides BlazyFormatterBase::settingsForm

1 call to BlazyEntityBase::settingsForm()
BlazyEntityReferenceBase::settingsForm in src/Plugin/Field/FieldFormatter/BlazyEntityReferenceBase.php
Implements hook_field_formatter_settings_form().
1 method overrides BlazyEntityBase::settingsForm()
BlazyEntityReferenceBase::settingsForm in src/Plugin/Field/FieldFormatter/BlazyEntityReferenceBase.php
Implements hook_field_formatter_settings_form().

File

src/Plugin/Field/FieldFormatter/BlazyEntityBase.php, line 97

Class

BlazyEntityBase
Base class for entity reference formatters without field details.

Namespace

Drupal\blazy\Plugin\Field\FieldFormatter

Code

public function settingsForm($form, &$form_state, $definition) {
  parent::settingsForm($form, $form_state, $definition);
  $element = [];
  $definition['_views'] = isset($form['field_api_classes']);
  $this
    ->admin()
    ->buildSettingsForm($element, $definition);
  return $element;
}