function ForumManager::__sleep
Same name in other branches
- 8.9.x core/modules/forum/src/ForumManager.php \Drupal\forum\ForumManager::__sleep()
- 10 core/modules/forum/src/ForumManager.php \Drupal\forum\ForumManager::__sleep()
- 11.x core/modules/forum/src/ForumManager.php \Drupal\forum\ForumManager::__sleep()
File
-
core/
modules/ forum/ src/ ForumManager.php, line 502
Class
- ForumManager
- Provides forum manager service.
Namespace
Drupal\forumCode
public function __sleep() {
$vars = $this->defaultSleep();
// Do not serialize static cache.
unset($vars['history'], $vars['index'], $vars['lastPostData'], $vars['forumChildren'], $vars['forumStatistics']);
return $vars;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.