function ConditionExpression::setConfiguration

Overrides ExpressionBase::setConfiguration

File

src/Plugin/RulesExpression/ConditionExpression.php, line 101

Class

ConditionExpression
Defines an executable condition expression.

Namespace

Drupal\rules\Plugin\RulesExpression

Code

public function setConfiguration(array $configuration) {
    // If the plugin id has been set already, keep it if not specified.
    if (isset($this->configuration['condition_id'])) {
        $configuration += [
            'condition_id' => $this->configuration['condition_id'],
        ];
    }
    return parent::setConfiguration($configuration);
}