You are here

public function BlazyViewsFieldMedia::getScopedFormElements in Blazy 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/field/BlazyViewsFieldMedia.php \Drupal\blazy\Plugin\views\field\BlazyViewsFieldMedia::getScopedFormElements()

Defines the scope for the form elements.

Overrides BlazyViewsFieldPluginBase::getScopedFormElements

File

src/Plugin/views/field/BlazyViewsFieldMedia.php, line 30

Class

BlazyViewsFieldMedia
Defines a custom field that renders a preview of a media.

Namespace

Drupal\blazy\Plugin\views\field

Code

public function getScopedFormElements() {
  return [
    'multimedia' => TRUE,
    'view_mode' => 'default',
  ] + parent::getScopedFormElements();
}