You are here

public static function OEmbedFormatter::defaultSettings in Drupal 9

Same name and namespace in other branches
  1. 8 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 148

Class

OEmbedFormatter
Plugin implementation of the 'oembed' formatter.

Namespace

Drupal\media\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'max_width' => 0,
    'max_height' => 0,
  ] + parent::defaultSettings();
}