You are here

public function BlazyViewsFieldPluginBase::getScopedFormElements in Blazy 8

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

Defines the scope for the form elements.

3 calls to BlazyViewsFieldPluginBase::getScopedFormElements()
BlazyViewsFieldFile::getScopedFormElements in src/Plugin/views/field/BlazyViewsFieldFile.php
Defines the scope for the form elements.
BlazyViewsFieldMedia::getScopedFormElements in src/Plugin/views/field/BlazyViewsFieldMedia.php
Defines the scope for the form elements.
BlazyViewsFieldPluginBase::buildOptionsForm in src/Plugin/views/field/BlazyViewsFieldPluginBase.php
Default options form that provides the label widget that all fields should have.
2 methods override BlazyViewsFieldPluginBase::getScopedFormElements()
BlazyViewsFieldFile::getScopedFormElements in src/Plugin/views/field/BlazyViewsFieldFile.php
Defines the scope for the form elements.
BlazyViewsFieldMedia::getScopedFormElements in src/Plugin/views/field/BlazyViewsFieldMedia.php
Defines the scope for the form elements.

File

src/Plugin/views/field/BlazyViewsFieldPluginBase.php, line 144

Class

BlazyViewsFieldPluginBase
Defines a base views field plugin to render a preview of supported fields.

Namespace

Drupal\blazy\Plugin\views\field

Code

public function getScopedFormElements() {
  return [
    'settings' => array_filter($this->options),
    'target_type' => !$this->view
      ->getBaseEntityType() ? '' : $this->view
      ->getBaseEntityType()
      ->id(),
    'thumbnail_style' => TRUE,
  ];
}