You are here

public function MediaWysiwygFilter::setConfiguration in Media Migration 8

Sets the configuration for this plugin instance.

Parameters

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

Overrides ConfigurableInterface::setConfiguration

1 call to MediaWysiwygFilter::setConfiguration()
MediaWysiwygFilter::__construct in src/Plugin/migrate/process/MediaWysiwygFilter.php
Constructs a new MediaWysiwygFilter instance.

File

src/Plugin/migrate/process/MediaWysiwygFilter.php, line 137

Class

MediaWysiwygFilter
Processes [[{"type":"media","fid":"1234",...}]] tokens in content.

Namespace

Drupal\media_migration\Plugin\migrate\process

Code

public function setConfiguration(array $configuration) {

  // Merge in defaults.
  $this->configuration = NestedArray::mergeDeep($this
    ->defaultConfiguration(), $configuration);
}