You are here

public function MediaSourceBase::defaultConfiguration in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media/src/MediaSourceBase.php \Drupal\media\MediaSourceBase::defaultConfiguration()
  2. 9 core/modules/media/src/MediaSourceBase.php \Drupal\media\MediaSourceBase::defaultConfiguration()
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' => '',
  ];
}