public function FormatterBase::buildSettingsForm in Blazy 7
Implements hook_field_formatter_settings_form().
File
- src/
Plugin/ Field/ FieldFormatter/ FormatterBase.php, line 211
Class
- FormatterBase
- Base class for blazy/slick image, and file formatters.
Namespace
Drupal\blazy\Plugin\Field\FieldFormatterCode
public function buildSettingsForm($form, &$form_state, $view_mode) {
$display = $this->fieldInstance['display'][$view_mode];
$this->fieldDisplay = $display;
$this->viewMode = $view_mode;
$this->fieldInstance['display'][$view_mode]['current_view_mode'] = $view_mode;
$this
->setupFieldVariables();
return $this
->settingsForm($form, $form_state, $this
->getScopedFormElements());
}