function FileMediaFormatterBase::defaultSettings
Same name in other branches
- 9 core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php \Drupal\file\Plugin\Field\FieldFormatter\FileMediaFormatterBase::defaultSettings()
- 8.9.x core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php \Drupal\file\Plugin\Field\FieldFormatter\FileMediaFormatterBase::defaultSettings()
- 10 core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php \Drupal\file\Plugin\Field\FieldFormatter\FileMediaFormatterBase::defaultSettings()
Overrides PluginSettingsBase::defaultSettings
1 call to FileMediaFormatterBase::defaultSettings()
- FileVideoFormatter::defaultSettings in core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ FileVideoFormatter.php - Defines the default settings for this plugin.
1 method overrides FileMediaFormatterBase::defaultSettings()
- FileVideoFormatter::defaultSettings in core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ FileVideoFormatter.php - Defines the default settings for this plugin.
File
-
core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ FileMediaFormatterBase.php, line 30
Class
- FileMediaFormatterBase
- Base class for media file formatter.
Namespace
Drupal\file\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'controls' => TRUE,
'autoplay' => FALSE,
'loop' => FALSE,
'multiple_file_display_type' => 'tags',
] + parent::defaultSettings();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.