8.5.x ConditionPluginBase.php ConditionPluginBase::setConfiguration(array $configuration)
8.0.x ConditionPluginBase.php ConditionPluginBase::setConfiguration(array $configuration)
8.1.x ConditionPluginBase.php ConditionPluginBase::setConfiguration(array $configuration)
8.2.x ConditionPluginBase.php ConditionPluginBase::setConfiguration(array $configuration)
8.3.x ConditionPluginBase.php ConditionPluginBase::setConfiguration(array $configuration)
8.4.x ConditionPluginBase.php ConditionPluginBase::setConfiguration(array $configuration)
8.6.x ConditionPluginBase.php ConditionPluginBase::setConfiguration(array $configuration)

Sets the configuration for this plugin instance.

Parameters

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

Overrides ConfigurablePluginInterface::setConfiguration

1 call to ConditionPluginBase::setConfiguration()

File

core/lib/Drupal/Core/Condition/ConditionPluginBase.php, line 99

Class

ConditionPluginBase
Provides a basis for fulfilling contexts for condition plugins.

Namespace

Drupal\Core\Condition

Code

public function setConfiguration(array $configuration) {
  $this->configuration = $configuration + $this
    ->defaultConfiguration();
  return $this;
}