function RulesState::__sleep

Magic method. Only serialize variables and their info.

Additionally we remember currently blocked configs, so we can restore them upon deserialization using restoreBlocks().

File

includes/rules.state.inc, line 344

Class

RulesState
The rules evaluation state.

Code

public function __sleep() {
    $this->currentlyBlocked = self::$blocked;
    return array(
        'info',
        'variables',
        'currentlyBlocked',
    );
}