You are here

public function RulesConditionalPredicateElement::dependencies in Conditional Rules 8

Same name and namespace in other branches
  1. 7 includes/rules_conditional.core.inc \RulesConditionalPredicateElement::dependencies()

Overrides RulesConditionalElement::dependencies

File

includes/rules_conditional.core.inc, line 478
Conditional Rules framework implementation.

Class

RulesConditionalPredicateElement
Base conditional element that uses a predicate.

Code

public function dependencies() {
  $modules = array_flip(parent::dependencies());
  if (isset($this->predicate)) {
    $modules += array_flip($this->predicate
      ->dependencies());
  }
  return array_keys($modules);
}