function ActionExpressionContainer::getIterator

Overrides ExpressionContainerInterface::getIterator

File

src/Engine/ActionExpressionContainer.php, line 92

Class

ActionExpressionContainer
Container for actions.

Namespace

Drupal\rules\Engine

Code

public function getIterator() : \Traversable {
    $iterator = new \ArrayIterator($this->actions);
    $iterator->uasort([
        ExpressionContainerBase::class,
        'sortByWeightProperty',
    ]);
    return $iterator;
}