public function TermStorage::__sleep in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/taxonomy/src/TermStorage.php \Drupal\taxonomy\TermStorage::__sleep()
Overrides DependencySerializationTrait::__sleep
File
- core/
modules/ taxonomy/ src/ TermStorage.php, line 356 - Contains \Drupal\taxonomy\TermStorage.
Class
- TermStorage
- Defines a Controller class for taxonomy terms.
Namespace
Drupal\taxonomyCode
public function __sleep() {
$vars = parent::__sleep();
// Do not serialize static cache.
unset($vars['parents'], $vars['parentsAll'], $vars['children'], $vars['treeChildren'], $vars['treeParents'], $vars['treeTerms'], $vars['trees']);
return $vars;
}