function TestActionSetExpression::executeWithState

Overrides ActionSetExpression::executeWithState

File

tests/src/Unit/ActionSetExpressionTest.php, line 150

Class

TestActionSetExpression
A wrapper around ActionSetExpression.

Namespace

Drupal\Tests\rules\Unit

Code

public function executeWithState(ExecutionStateInterface $state) {
    $uuids = [];
    // Use the iterator to ensure the actions are sorted.
    foreach ($this as $action) {
        $action->executeWithState($state);
        $uuids[] = $action->getUuid();
    }
    // Return array of UUID in same order as the actions were executed.
    return $uuids;
}