function RulesContainerPlugin::optimize

Overrides optimize().

Overrides RulesPlugin::optimize

File

includes/rules.core.inc, line 2508

Class

RulesContainerPlugin
Base class for ContainerPlugins like Rules, Logical Operations or Loops.

Code

public function optimize() {
    parent::optimize();
    // Now let the children optimize itself.
    foreach ($this as $element) {
        $element->optimize();
    }
}