public static function OEmbedFormatter::defaultSettings in Drupal 8
Same name and namespace in other branches
- 9 core/modules/media/src/Plugin/Field/FieldFormatter/OEmbedFormatter.php \Drupal\media\Plugin\Field\FieldFormatter\OEmbedFormatter::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
- core/
modules/ media/ src/ Plugin/ Field/ FieldFormatter/ OEmbedFormatter.php, line 149
Class
- OEmbedFormatter
- Plugin implementation of the 'oembed' formatter.
Namespace
Drupal\media\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'max_width' => 0,
'max_height' => 0,
] + parent::defaultSettings();
}