function LoopExpression::prepareExecutionMetadataStateAfterTraversal
Overrides ExpressionContainerBase::prepareExecutionMetadataStateAfterTraversal
File
-
src/
Plugin/ RulesExpression/ LoopExpression.php, line 127
Class
- LoopExpression
- Holds a set of actions that are executed over the iteration of a list.
Namespace
Drupal\rules\Plugin\RulesExpressionCode
protected function prepareExecutionMetadataStateAfterTraversal(ExecutionMetadataStateInterface $metadata_state) {
// Remove the list item variable after the loop, it is out of scope now.
$metadata_state->removeDataDefinition($this->configuration['list_item']);
}