function RulesState::cleanUp

Runs post-evaluation tasks, such as saving variables.

File

includes/rules.state.inc, line 81

Class

RulesState
The rules evaluation state.

Code

public function cleanUp() {
    // Make changes permanent.
    foreach ($this->save
        ->getArrayCopy() as $selector => $wrapper) {
        $this->saveNow($selector);
    }
    unset($this->currentArguments);
}