You are here

public function BlazyFileFormatter::getScopedFormElements in Blazy 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/BlazyFileFormatter.php \Drupal\blazy\Plugin\Field\FieldFormatter\BlazyFileFormatter::getScopedFormElements()
  2. 7 src/Plugin/Field/FieldFormatter/BlazyFileFormatter.php \Drupal\blazy\Plugin\Field\FieldFormatter\BlazyFileFormatter::getScopedFormElements()

Defines the scope for the form elements.

Overrides BlazyFileFormatterBase::getScopedFormElements

File

src/Plugin/Field/FieldFormatter/BlazyFileFormatter.php, line 19

Class

BlazyFileFormatter
Plugin implementation of the 'Blazy File' to get videos within images/files.

Namespace

Drupal\blazy\Plugin\Field\FieldFormatter

Code

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