public static function VideoEmbedPlayerFormatter::defaultSettings in Video 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/VideoEmbedPlayerFormatter.php \Drupal\video\Plugin\Field\FieldFormatter\VideoEmbedPlayerFormatter::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
File
- src/
Plugin/ Field/ FieldFormatter/ VideoEmbedPlayerFormatter.php, line 57
Class
- VideoEmbedPlayerFormatter
- Plugin implementation of the video field formatter.
Namespace
Drupal\video\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'width' => '854',
'height' => '480',
'autoplay' => TRUE,
'related_videos' => FALSE,
];
}