You are here

public function RulesContainerPlugin::optimize in Rules 7.2

Overrides optimize().

Overrides RulesPlugin::optimize

File

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

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();
  }
}