You are here

protected function LoopExpression::prepareExecutionMetadataStateAfterTraversal in Rules 8.3

Prepares execution metadata state after traversing through children.

Overrides ExpressionContainerBase::prepareExecutionMetadataStateAfterTraversal

See also

::prepareExecutionMetadataState()

::checkIntegrity()

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\RulesExpression

Code

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']);
}