You are here

public function SlickFileFormatter::getScopedFormElements in Slick Carousel 8

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

Overrides SlickFileFormatterBase::getScopedFormElements

File

src/Plugin/Field/FieldFormatter/SlickFileFormatter.php, line 28

Class

SlickFileFormatter
Plugin implementation of the 'Slick File' formatter to get ME within images.

Namespace

Drupal\slick\Plugin\Field\FieldFormatter

Code

public function getScopedFormElements() {
  return [
    'fieldable_form' => TRUE,
    'multimedia' => TRUE,
    'view_mode' => $this->viewMode,
  ] + parent::getScopedFormElements();
}