ForumManager::__sleep

public ForumManager::__sleep()

File

core/modules/forum/src/ForumManager.php, line 496

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;
}
doc_Drupal
2016-10-29 09:17:13
Comments
Leave a Comment

Please login to continue.