You are here

public function EntityMetadataWrapper::__sleep in Entity API 7

Prepare for serializiation.

1 call to EntityMetadataWrapper::__sleep()
EntityStructureWrapper::__sleep in includes/entity.wrapper.inc
Prepare for serializiation.
1 method overrides EntityMetadataWrapper::__sleep()
EntityStructureWrapper::__sleep in includes/entity.wrapper.inc
Prepare for serializiation.

File

includes/entity.wrapper.inc, line 257
Provides wrappers allowing easy usage of the entity metadata.

Class

EntityMetadataWrapper
A common base class for all wrappers.

Code

public function __sleep() {
  $vars = get_object_vars($this);
  unset($vars['cache']);
  return drupal_map_assoc(array_keys($vars));
}