function OEmbedFormatter::defaultSettings

Same name in other branches
  1. 9 core/modules/media/src/Plugin/Field/FieldFormatter/OEmbedFormatter.php \Drupal\media\Plugin\Field\FieldFormatter\OEmbedFormatter::defaultSettings()
  2. 8.9.x core/modules/media/src/Plugin/Field/FieldFormatter/OEmbedFormatter.php \Drupal\media\Plugin\Field\FieldFormatter\OEmbedFormatter::defaultSettings()
  3. 10 core/modules/media/src/Plugin/Field/FieldFormatter/OEmbedFormatter.php \Drupal\media\Plugin\Field\FieldFormatter\OEmbedFormatter::defaultSettings()

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\FieldFormatter

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.