function RulesComponent::calculateDependencies

Calculates dependencies for the component.

Return value

array An array of dependencies grouped by type (config, content, module, theme).

See also

\Drupal\Component\Plugin\DependentPluginInterface::calculateDependencies()

File

src/Engine/RulesComponent.php, line 320

Class

RulesComponent
Handles executable Rules components.

Namespace

Drupal\rules\Engine

Code

public function calculateDependencies() {
    // @todo Complete implementation and add test coverage.
    $this->addDependency('module', 'rules');
    $this->addDependencies($this->getExpression()
        ->calculateDependencies());
    return $this->dependencies;
}