function MediaSourceBase::setConfiguration

Same name in other branches
  1. 8.9.x core/modules/media/src/MediaSourceBase.php \Drupal\media\MediaSourceBase::setConfiguration()
  2. 10 core/modules/media/src/MediaSourceBase.php \Drupal\media\MediaSourceBase::setConfiguration()
  3. 11.x core/modules/media/src/MediaSourceBase.php \Drupal\media\MediaSourceBase::setConfiguration()

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.