function OEmbed::defaultConfiguration

Same name in other branches
  1. 9 core/modules/media/src/Plugin/media/Source/OEmbed.php \Drupal\media\Plugin\media\Source\OEmbed::defaultConfiguration()
  2. 10 core/modules/media/src/Plugin/media/Source/OEmbed.php \Drupal\media\Plugin\media\Source\OEmbed::defaultConfiguration()
  3. 11.x core/modules/media/src/Plugin/media/Source/OEmbed.php \Drupal\media\Plugin\media\Source\OEmbed::defaultConfiguration()

Overrides MediaSourceBase::defaultConfiguration

File

core/modules/media/src/Plugin/media/Source/OEmbed.php, line 364

Class

OEmbed
Provides a media source plugin for oEmbed resources.

Namespace

Drupal\media\Plugin\media\Source

Code

public function defaultConfiguration() {
    return [
        'thumbnails_directory' => 'public://oembed_thumbnails',
        'providers' => [],
    ] + parent::defaultConfiguration();
}

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