function RulesPlugin::root
Gets the root element of the configuration.
1 call to RulesPlugin::root()
- RulesPlugin::elementMap in includes/
rules.core.inc - Gets the element map helper object, which helps mapping elements to ids.
File
-
includes/
rules.core.inc, line 514
Class
- RulesPlugin
- Base class for rules plugins.
Code
public function root() {
$element = $this;
while (!$element->isRoot()) {
$element = $element->parent;
}
return $element;
}