public static function Video::defaultSettings in Video Embed Field 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/Video.php \Drupal\video_embed_field\Plugin\Field\FieldFormatter\Video::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
4 calls to Video::defaultSettings()
- Colorbox::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ Colorbox.php - Defines the default settings for this plugin.
- LazyLoad::defaultSettings in src/
Plugin/ Field/ FieldFormatter/ LazyLoad.php - Defines the default settings for this plugin.
- VideoEmbedDialog::getClientValues in modules/
video_embed_wysiwyg/ src/ Form/ VideoEmbedDialog.php - Get the values from the form and provider required for the client.
- VideoEmbedWysiwyg::isValidSettings in modules/
video_embed_wysiwyg/ src/ Plugin/ Filter/ VideoEmbedWysiwyg.php - Check if the given settings are valid.
File
- src/
Plugin/ Field/ FieldFormatter/ Video.php, line 124
Class
- Video
- Plugin implementation of the video field formatter.
Namespace
Drupal\video_embed_field\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'responsive' => TRUE,
'width' => '854',
'height' => '480',
'autoplay' => TRUE,
];
}