You are here

public function RulesContainerPlugin::dependencies in Rules 7.2

Calculates an array of required modules.

You can use $this->dependencies to access dependencies for saved configurations.

Overrides RulesPlugin::dependencies

1 call to RulesContainerPlugin::dependencies()
Rule::dependencies in includes/rules.plugins.inc
Calculates an array of required modules.
1 method overrides RulesContainerPlugin::dependencies()
Rule::dependencies in includes/rules.plugins.inc
Calculates an array of required modules.

File

includes/rules.core.inc, line 2237
Rules base classes and interfaces needed for any rule evaluation.

Class

RulesContainerPlugin
Base class for ContainerPlugins like Rules, Logical Operations or Loops.

Code

public function dependencies() {
  $modules = array_flip(parent::dependencies());
  foreach ($this->children as $child) {
    $modules += array_flip($child
      ->dependencies());
  }
  return array_keys($modules);
}