You are here

public function TermStorage::__wakeup in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/src/TermStorage.php \Drupal\taxonomy\TermStorage::__wakeup()
  2. 9 core/modules/taxonomy/src/TermStorage.php \Drupal\taxonomy\TermStorage::__wakeup()

Overrides DependencySerializationTrait::__wakeup

File

core/modules/taxonomy/src/TermStorage.php, line 458

Class

TermStorage
Defines a Controller class for taxonomy terms.

Namespace

Drupal\taxonomy

Code

public function __wakeup() {
  parent::__wakeup();

  // Initialize static caches.
  $this->ancestors = [];
  $this->treeChildren = [];
  $this->treeParents = [];
  $this->treeTerms = [];
  $this->trees = [];
  $this->vocabularyHierarchyType = [];
}