You are here

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

File

src/Plugin/ServicePluginBase.php, line 105

Class

ServicePluginBase
Defines a base implementation for analytics service plugins will extend.

Namespace

Drupal\analytics\Plugin

Code

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