You are here

public function OEmbed::defaultConfiguration in Drupal 10

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()
  2. 9 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 375

Class

OEmbed
Provides a media source plugin for oEmbed resources.

Namespace

Drupal\media\Plugin\media\Source

Code

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