public static function MediaElementFieldFormatterTrait::defaultSettings in MediaElement 8
1 call to MediaElementFieldFormatterTrait::defaultSettings()
- MediaElementVideoFieldFormatter::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ MediaElementVideoFieldFormatter.php - Defines the default settings for this plugin.
File
- src/
Plugin/ Field/ FieldFormatter/ MediaElementFieldFormatterTrait.php, line 16
Class
- MediaElementFieldFormatterTrait
- Common methods for MediaElement.js processing.
Namespace
Drupal\mediaelement\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return parent::defaultSettings() + [
'download_link' => FALSE,
'download_text' => '',
'preload' => 'none',
];
}