function RuleExpression::checkIntegrity

Overrides ExpressionInterface::checkIntegrity

File

src/Plugin/RulesExpression/RuleExpression.php, line 243

Class

RuleExpression
Provides a rule, executing actions when conditions are met.

Namespace

Drupal\rules\Plugin\RulesExpression

Code

public function checkIntegrity(ExecutionMetadataStateInterface $metadata_state, $apply_assertions = TRUE) {
    $violation_list = $this->conditions
        ->checkIntegrity($metadata_state, $apply_assertions);
    $violation_list->addAll($this->actions
        ->checkIntegrity($metadata_state, $apply_assertions));
    return $violation_list;
}