You are here

public function RulesPlugin::isRoot in Rules 7.2

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.

... See full list

File

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

Class

RulesPlugin
Base class for rules plugins.

Code

public function isRoot() {
  return empty($this->parent) || isset($this->name);
}