diff --git a/core/lib/Drupal/Core/Entity/ContentEntityBase.php b/core/lib/Drupal/Core/Entity/ContentEntityBase.php index e11c9f1..a8e804d 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityBase.php @@ -364,10 +364,7 @@ public function __sleep() { $this->fieldDefinitions = NULL; $this->clearTranslationCache(); - // Don't serialize the url generator. - $this->urlGenerator = NULL; - - return array_keys(get_object_vars($this)); + return parent::__sleep(); } @@ -375,6 +372,7 @@ public function __sleep() { * Magic __wakeup() implementation. */ public function __wakeup() { + parent::__wakeup(); $this->init(); }