public function Entity::__sleep

cis7 public Entity::__sleep()
cle7 public Entity::__sleep()
elmsmedia7 public Entity::__sleep()
icor7 public Entity::__sleep()
meedjum_blog7 public Entity::__sleep()
mooc7 public Entity::__sleep()

Magic method to only serialize what's necessary.

1 method overrides Entity::__sleep()
FieldCollectionItemEntity::__sleep in sites/all/modules/ulmus/field_collection/field_collection.module
Magic method to only serialize what's necessary.


sites/all/modules/ulmus/entity/includes/, line 298
Provides a base class for entities.


A common class for entities.


public function __sleep() {
  $vars = get_object_vars($this);
  unset($vars['entityInfo'], $vars['idKey'], $vars['nameKey'], $vars['statusKey']);
  // Also key the returned array with the variable names so the method may
  // be easily overridden and customized.
  return drupal_map_assoc(array_keys($vars));