You are here

public function Rule::conditions in Rules 7.2

Gets an iterator over all contained conditions.

Note that this iterator also implements the ArrayAccess interface.

Return value

RulesRecursiveElementIterator

File

includes/rules.plugins.inc, line 194
Contains plugin info and implementations not needed for rule evaluation.

Class

Rule
An actual rule.

Code

public function conditions() {
  return $this->conditions
    ->getIterator();
}