You are here

public function OEmbed::defaultConfiguration in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/media/src/Plugin/media/Source/OEmbed.php \Drupal\media\Plugin\media\Source\OEmbed::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides MediaSourceBase::defaultConfiguration

File

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

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();
}