You are here

public static function oEmbedLinkFormatter::defaultSettings in oEmbed 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/oEmbedLinkFormatter.php, line 64
Contains \Drupal\oembed\Plugin\Field\FieldFormatter\oEmbedLinkFormatter.

Class

oEmbedLinkFormatter
Plugin implementation of the 'oembed_link' formatter.

Namespace

Drupal\oembed\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array(
    'maxwidth' => '',
    'maxheight' => '',
  ) + parent::defaultSettings();
}