You are here

public function Entity::__sleep in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Entity.php \Drupal\Core\Entity\Entity::__sleep()
2 calls to Entity::__sleep()
ContentEntityBase::__sleep in core/lib/Drupal/Core/Entity/ContentEntityBase.php
View::__sleep in core/modules/views/src/Entity/View.php
5 methods override Entity::__sleep()
ContentEntityBase::__sleep in core/lib/Drupal/Core/Entity/ContentEntityBase.php
EntityDisplayBase::__sleep in core/lib/Drupal/Core/Entity/EntityDisplayBase.php
FieldConfigBase::__sleep in core/lib/Drupal/Core/Field/FieldConfigBase.php
Implements the magic __sleep() method.
FieldStorageConfig::__sleep in core/modules/field/src/Entity/FieldStorageConfig.php
Implements the magic __sleep() method.
View::__sleep in core/modules/views/src/Entity/View.php

File

core/lib/Drupal/Core/Entity/Entity.php, line 619
Contains \Drupal\Core\Entity\Entity.

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

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