public EntityDisplayBase::__wakeup()
Overrides DependencySerializationTrait::__wakeup
public function __wakeup() { // Determine what were the properties from toArray() that were saved in // __sleep(). $keys = $this->_serializedKeys; unset($this->_serializedKeys); $values = array_intersect_key(get_object_vars($this), array_flip($keys)); // Run those values through the __construct(), as if they came from a // regular entity load. $this->__construct($values, $this->entityTypeId); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityDisplayBase.php/function/EntityDisplayBase::__wakeup/8.1.x