You are here

public function MediaSourceBase::setConfiguration in Drupal 9

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

Sets the configuration for this plugin instance.

Parameters

array $configuration: An associative array containing the plugin's configuration.

Overrides ConfigurableInterface::setConfiguration

2 calls to MediaSourceBase::setConfiguration()
MediaSourceBase::__construct in core/modules/media/src/MediaSourceBase.php
Constructs a new class instance.
OEmbed::submitConfigurationForm in core/modules/media/src/Plugin/media/Source/OEmbed.php
Form submission handler.

File

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

Class

MediaSourceBase
Base implementation of media source plugin.

Namespace

Drupal\media

Code

public function setConfiguration(array $configuration) {
  $this->configuration = NestedArray::mergeDeep($this
    ->defaultConfiguration(), $configuration);
}