function 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\FieldFormatterCode
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.