You are here

public function BlazyViewsFieldFile::getScopedFormElements in Blazy 8

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

Defines the scope for the form elements.

Overrides BlazyViewsFieldPluginBase::getScopedFormElements

File

src/Plugin/views/field/BlazyViewsFieldFile.php, line 33

Class

BlazyViewsFieldFile
Defines a custom field that renders a preview of a file.

Namespace

Drupal\blazy\Plugin\views\field

Code

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