8.4.x Entity.php public Entity::__sleep()
8.0.x Entity.php public Entity::__sleep()
8.1.x Entity.php public Entity::__sleep()
8.2.x Entity.php public Entity::__sleep()
8.3.x Entity.php public Entity::__sleep()
8.5.x Entity.php Entity::__sleep()
2 calls to Entity::__sleep()
ConfigEntityBase::__sleep in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
ContentEntityBase::__sleep in core/lib/Drupal/Core/Entity/ContentEntityBase.php
2 methods override Entity::__sleep()
ConfigEntityBase::__sleep in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
ContentEntityBase::__sleep in core/lib/Drupal/Core/Entity/ContentEntityBase.php

File

core/lib/Drupal/Core/Entity/Entity.php, line 605

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function __sleep() {
  $this->typedData = NULL;
  return $this->traitSleep();
}