You are here

public function WidgetSelectorBase::setConfiguration in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/WidgetSelectorBase.php \Drupal\entity_browser\WidgetSelectorBase::setConfiguration()

Sets the configuration for this plugin instance.

Parameters

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

Overrides ConfigurableInterface::setConfiguration

1 call to WidgetSelectorBase::setConfiguration()
WidgetSelectorBase::__construct in src/WidgetSelectorBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/WidgetSelectorBase.php, line 66

Class

WidgetSelectorBase
Base class for widget selector plugins.

Namespace

Drupal\entity_browser

Code

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