You are here

public function FlagTypeBase::setConfiguration in Flag 8.4

Sets the configuration for this plugin instance.

Parameters

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

Overrides ConfigurableInterface::setConfiguration

File

src/FlagType/FlagTypeBase.php, line 78

Class

FlagTypeBase
Provides a base class for flag type plugins.

Namespace

Drupal\flag\FlagType

Code

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