Elgg\HooksRegistrationService::restore PHP Method

restore() public method

Restore backed up event/hook registrations (after tests)
See also: backup
public restore ( ) : void
return void
    public function restore()
    {
        $backup = array_pop($this->backups);
        if (is_array($backup)) {
            $this->registrations = $backup;
        }
    }