function ActionSetExpression::executeWithState
Overrides ExpressionInterface::executeWithState
1 method overrides ActionSetExpression::executeWithState()
- TestActionSetExpression::executeWithState in tests/
src/ Unit/ ActionSetExpressionTest.php - Execute the expression with a given Rules state.
File
-
src/
Plugin/ RulesExpression/ ActionSetExpression.php, line 29
Class
- ActionSetExpression
- Holds a set of actions and executes all of them.
Namespace
Drupal\rules\Plugin\RulesExpressionCode
public function executeWithState(ExecutionStateInterface $state) {
// Use the iterator to ensure the actions are sorted.
foreach ($this as $action) {
/** @var \Drupal\rules\Engine\ExpressionInterface $action */
$action->executeWithState($state);
}
}