function ActionExpressionContainer::getConfiguration

Overrides ExpressionBase::getConfiguration

File

src/Engine/ActionExpressionContainer.php, line 77

Class

ActionExpressionContainer
Container for actions.

Namespace

Drupal\rules\Engine

Code

public function getConfiguration() {
    $configuration = parent::getConfiguration();
    // We need to update the configuration in case actions have been added or
    // changed.
    $configuration['actions'] = [];
    // Use the iterator, which sorts the actions by weight.
    foreach ($this as $action) {
        $configuration['actions'][] = $action->getConfiguration();
    }
    return $configuration;
}