function ConditionExpressionContainer::executeWithState

Overrides ExpressionInterface::executeWithState

File

src/Engine/ConditionExpressionContainer.php, line 78

Class

ConditionExpressionContainer
Container for conditions.

Namespace

Drupal\rules\Engine

Code

public function executeWithState(ExecutionStateInterface $rules_state) {
    $result = $this->evaluate($rules_state);
    return $this->isNegated() ? !$result : $result;
}