You are here

public function ConditionPluginBase::setConfiguration in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Condition/ConditionPluginBase.php \Drupal\Core\Condition\ConditionPluginBase::setConfiguration()

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()
ConditionPluginBase::__construct in core/lib/Drupal/Core/Condition/ConditionPluginBase.php
Overrides \Drupal\Component\Plugin\PluginBase::__construct().

File

core/lib/Drupal/Core/Condition/ConditionPluginBase.php, line 97
Contains \Drupal\Core\Condition\ConditionPluginBase.

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;
}