function RulesPlugin::isRoot
Returns whether the element is the root of the configuration.
15 calls to RulesPlugin::isRoot()
- Rule::exportFlat in includes/
rules.plugins.inc - Determines whether the element should be exported in flat style.
- Rule::exportToArray in includes/
rules.plugins.inc - Rule::import in includes/
rules.plugins.inc - Applies the given export.
- Rule::providesVariables in includes/
rules.plugins.inc - Overridden to expose the variables of all actions for embedded rules.
- RulesContainerPlugin::availableVariables in includes/
rules.core.inc - Returns info about variables available to be used as arguments for this element.
File
-
includes/
rules.core.inc, line 525
Class
- RulesPlugin
- Base class for rules plugins.
Code
public function isRoot() {
return empty($this->parent) || isset($this->name);
}