You are here

public function SlickFileFormatterBase::getScopedFormElements in Slick Carousel 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldFormatter/SlickFileFormatterBase.php \Drupal\slick\Plugin\Field\FieldFormatter\SlickFileFormatterBase::getScopedFormElements()
1 call to SlickFileFormatterBase::getScopedFormElements()
SlickFileFormatter::getScopedFormElements in src/Plugin/Field/FieldFormatter/SlickFileFormatter.php
1 method overrides SlickFileFormatterBase::getScopedFormElements()
SlickFileFormatter::getScopedFormElements in src/Plugin/Field/FieldFormatter/SlickFileFormatter.php

File

src/Plugin/Field/FieldFormatter/SlickFileFormatterBase.php, line 103

Class

SlickFileFormatterBase
Base class for slick image and file ER formatters.

Namespace

Drupal\slick\Plugin\Field\FieldFormatter

Code

public function getScopedFormElements() {
  $captions = [
    'title' => $this
      ->t('Title'),
    'alt' => $this
      ->t('Alt'),
  ];
  return [
    'namespace' => 'slick',
    'nav' => TRUE,
    'thumb_captions' => $captions,
    'thumb_positions' => TRUE,
  ] + parent::getScopedFormElements();
}