You are here

public function WidgetPluginBase::setConfiguration in Facets 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 WidgetPluginBase::setConfiguration()
WidgetPluginBase::__construct in src/Widget/WidgetPluginBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/Widget/WidgetPluginBase.php, line 122

Class

WidgetPluginBase
A base class for widgets that implements most of the boilerplate.

Namespace

Drupal\facets\Widget

Code

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