function ExpressionBase::setConfiguration

Overrides ConfigurableInterface::setConfiguration

3 calls to ExpressionBase::setConfiguration()
ActionExpression::setConfiguration in src/Plugin/RulesExpression/ActionExpression.php
Sets the configuration for this plugin instance.
ConditionExpression::setConfiguration in src/Plugin/RulesExpression/ConditionExpression.php
Sets the configuration for this plugin instance.
ExpressionBase::__construct in src/Engine/ExpressionBase.php
Constructor.
2 methods override ExpressionBase::setConfiguration()
ActionExpression::setConfiguration in src/Plugin/RulesExpression/ActionExpression.php
Sets the configuration for this plugin instance.
ConditionExpression::setConfiguration in src/Plugin/RulesExpression/ConditionExpression.php
Sets the configuration for this plugin instance.

File

src/Engine/ExpressionBase.php, line 89

Class

ExpressionBase
Base class for rules expressions.

Namespace

Drupal\rules\Engine

Code

public function setConfiguration(array $configuration) {
    $this->configuration = $configuration + $this->defaultConfiguration();
    if (isset($configuration['uuid'])) {
        $this->uuid = $configuration['uuid'];
    }
    if (isset($configuration['weight'])) {
        $this->weight = $configuration['weight'];
    }
    return $this;
}