You are here

public function SlickTextFormatter::getScopedFormElements in Slick Carousel 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/SlickTextFormatter.php \Drupal\slick\Plugin\Field\FieldFormatter\SlickTextFormatter::getScopedFormElements()
  2. 7.3 src/Plugin/Field/FieldFormatter/SlickTextFormatter.php \Drupal\slick\Plugin\Field\FieldFormatter\SlickTextFormatter::getScopedFormElements()

Defines the scope for the form elements.

1 call to SlickTextFormatter::getScopedFormElements()
SlickTextFormatter::settingsForm in src/Plugin/Field/FieldFormatter/SlickTextFormatter.php
Returns a form to configure settings for the formatter.

File

src/Plugin/Field/FieldFormatter/SlickTextFormatter.php, line 112

Class

SlickTextFormatter
Plugin implementation of the 'Slick Text' formatter.

Namespace

Drupal\slick\Plugin\Field\FieldFormatter

Code

public function getScopedFormElements() {
  return [
    'current_view_mode' => $this->viewMode,
    'no_layouts' => TRUE,
    'plugin_id' => $this
      ->getPluginId(),
    'settings' => $this
      ->getSettings(),
  ];
}