function RulesContainerPlugin::integrityCheck
Return value
Overrides RulesPlugin::integrityCheck
2 calls to RulesContainerPlugin::integrityCheck()
- Rule::integrityCheck in includes/
rules.plugins.inc - Makes sure the plugin is configured right.
- RulesLoop::integrityCheck in includes/
rules.plugins.inc - Makes sure the plugin is configured right.
2 methods override RulesContainerPlugin::integrityCheck()
- Rule::integrityCheck in includes/
rules.plugins.inc - Makes sure the plugin is configured right.
- RulesLoop::integrityCheck in includes/
rules.plugins.inc - Makes sure the plugin is configured right.
File
-
includes/
rules.core.inc, line 2246
Class
- RulesContainerPlugin
- Base class for ContainerPlugins like Rules, Logical Operations or Loops.
Code
public function integrityCheck() {
if (!empty($this->info['variables']) && !$this->isRoot()) {
throw new RulesIntegrityException(t('%plugin: Specifying state variables is not possible for child elements.', array(
'%plugin' => $this->getPluginName(),
)), $this);
}
parent::integrityCheck();
foreach ($this->children as $child) {
$child->integrityCheck();
}
return $this;
}