function ExpressionContainerBase::checkIntegrity
Overrides ExpressionInterface::checkIntegrity
1 call to ExpressionContainerBase::checkIntegrity()
- LoopExpression::checkIntegrity in src/
Plugin/ RulesExpression/ LoopExpression.php - Verifies that this expression is configured correctly.
1 method overrides ExpressionContainerBase::checkIntegrity()
- LoopExpression::checkIntegrity in src/
Plugin/ RulesExpression/ LoopExpression.php - Verifies that this expression is configured correctly.
File
-
src/
Engine/ ExpressionContainerBase.php, line 86
Class
- ExpressionContainerBase
- Common base class for action and condition expression containers.
Namespace
Drupal\rules\EngineCode
public function checkIntegrity(ExecutionMetadataStateInterface $metadata_state, $apply_assertions = TRUE) {
$violation_list = new IntegrityViolationList();
$this->prepareExecutionMetadataStateBeforeTraversal($metadata_state);
$apply_assertions = $apply_assertions && $this->allowsMetadataAssertions();
foreach ($this as $child_expression) {
$child_violations = $child_expression->checkIntegrity($metadata_state, $apply_assertions);
$violation_list->addAll($child_violations);
}
$this->prepareExecutionMetadataStateAfterTraversal($metadata_state);
return $violation_list;
}