public function __sleep() { $vars = parent::
__sleep();
// Do not serialize static cache.
unset($vars['ancestors'
],
$vars['treeChildren'
],
$vars['treeParents'
],
$vars['treeTerms'
],
$vars['trees'
],
$vars['vocabularyHierarchyType'
]);
return $vars;
} /**
* {@inheritdoc}
*/
public function __wakeup() { parent::
__wakeup();
// Initialize static caches.
$this->ancestors =
[];
$this->treeChildren =
[];
$this->treeParents =
[];
$this->treeTerms =
[];
$this->trees =
[];
$this->vocabularyHierarchyType =
[];
}}