You are here

public function MediaTypeBase::setConfiguration in Media entity 8

Sets the configuration for this plugin instance.

Parameters

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

Overrides ConfigurablePluginInterface::setConfiguration

1 call to MediaTypeBase::setConfiguration()
MediaTypeBase::__construct in src/MediaTypeBase.php
Constructs a new class instance.

File

src/MediaTypeBase.php, line 90

Class

MediaTypeBase
Base implementation of media type plugin.

Namespace

Drupal\media_entity

Code

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