TermStorage::__sleep

public TermStorage::__sleep()

Overrides DependencySerializationTrait::__sleep

File

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

Class

TermStorage
Defines a Controller class for taxonomy terms.

Namespace

Drupal\taxonomy

Code

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

Please login to continue.