public function BlazyViewsFieldFile::getScopedFormElements in Blazy 8
Same name and namespace in other branches
- 8.2 src/Plugin/views/field/BlazyViewsFieldFile.php \Drupal\blazy\Plugin\views\field\BlazyViewsFieldFile::getScopedFormElements()
- 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\fieldCode
public function getScopedFormElements() {
return [
'multimedia' => TRUE,
'view_mode' => 'default',
] + parent::getScopedFormElements();
}