You are here

public function EntityStructureWrapper::__sleep in Entity API 7

Prepare for serializiation.

Overrides EntityMetadataWrapper::__sleep

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

File

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

Class

EntityStructureWrapper
Provides a general wrapper for any data structure. For this to work the metadata has to be passed during construction.

Code

public function __sleep() {
  $vars = parent::__sleep();
  unset($vars['propertyInfoDefaults']);
  return $vars;
}