You are here

public function MediaSourceBase::defaultConfiguration in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/media/src/MediaSourceBase.php \Drupal\media\MediaSourceBase::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurableInterface::defaultConfiguration

3 calls to MediaSourceBase::defaultConfiguration()
MediaSourceBase::setConfiguration in core/modules/media/src/MediaSourceBase.php
Sets the configuration for this plugin instance.
OEmbed::defaultConfiguration in core/modules/media/src/Plugin/media/Source/OEmbed.php
Gets default configuration for this plugin.
Test::defaultConfiguration in core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php
Gets default configuration for this plugin.
2 methods override MediaSourceBase::defaultConfiguration()
OEmbed::defaultConfiguration in core/modules/media/src/Plugin/media/Source/OEmbed.php
Gets default configuration for this plugin.
Test::defaultConfiguration in core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php
Gets default configuration for this plugin.

File

core/modules/media/src/MediaSourceBase.php, line 121

Class

MediaSourceBase
Base implementation of media source plugin.

Namespace

Drupal\media

Code

public function defaultConfiguration() {
  return [
    'source_field' => '',
  ];
}