You are here

public function BlazyVideoFormatter::getScopedFormElements in Blazy 8

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

Defines the scope for the form elements.

Overrides BlazyVideoBase::getScopedFormElements

File

src/Plugin/Field/FieldFormatter/BlazyVideoFormatter.php, line 114

Class

BlazyVideoFormatter
Plugin implementation of the 'Blazy Video' to get VEF videos.

Namespace

Drupal\blazy\Plugin\Field\FieldFormatter

Code

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