You are here

public function EntityEmbedDisplayBase::setConfiguration in Entity Embed 8

Sets the configuration for this plugin instance.

Parameters

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

Overrides ConfigurableInterface::setConfiguration

2 calls to EntityEmbedDisplayBase::setConfiguration()
EntityEmbedDisplayBase::__construct in src/EntityEmbedDisplay/EntityEmbedDisplayBase.php
Constructs an EntityEmbedDisplayBase object.
FieldFormatterEntityEmbedDisplayBase::__construct in src/EntityEmbedDisplay/FieldFormatterEntityEmbedDisplayBase.php
Constructs a FieldFormatterEntityEmbedDisplayBase object.

File

src/EntityEmbedDisplay/EntityEmbedDisplayBase.php, line 159

Class

EntityEmbedDisplayBase
Defines a base Entity Embed Display implementation.

Namespace

Drupal\entity_embed\EntityEmbedDisplay

Code

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