public static function YouTubeFormatter::defaultSettings in YouTube Field 8
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/ YouTubeFormatter.php, line 25
Class
- YouTubeFormatter
- Plugin implementation of the 'youtube_video' formatter.
Namespace
Drupal\youtube\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'youtube_size' => '450x315',
'youtube_width' => '',
'youtube_height' => '',
'youtube_autoplay' => '',
'youtube_mute' => '',
'youtube_loop' => '',
'youtube_controls' => '',
'youtube_autohide' => '',
'youtube_iv_load_policy' => '',
] + parent::defaultSettings();
}