You are here

public function ForumManager::__sleep in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/forum/src/ForumManager.php \Drupal\forum\ForumManager::__sleep()

File

core/modules/forum/src/ForumManager.php, line 501
Contains \Drupal\forum\ForumManager.

Class

ForumManager
Provides forum manager service.

Namespace

Drupal\forum

Code

public function __sleep() {
  $vars = $this
    ->defaultSleep();

  // Do not serialize static cache.
  unset($vars['history'], $vars['index'], $vars['lastPostData'], $vars['forumChildren'], $vars['forumStatistics']);
  return $vars;
}