diff --git a/core/lib/Drupal/Core/Entity/EntityDisplayBase.php b/core/lib/Drupal/Core/Entity/EntityDisplayBase.php index aba35e2..9a78c69 100644 --- a/core/lib/Drupal/Core/Entity/EntityDisplayBase.php +++ b/core/lib/Drupal/Core/Entity/EntityDisplayBase.php @@ -429,9 +429,7 @@ public function __sleep() { public function __wakeup() { // Run the values from self::toArray() through __construct(). $values = array_intersect_key($this->toArray(), get_object_vars($this)); - $is_new = $this->isNew(); $this->__construct($values, $this->entityTypeId); - $this->enforceIsNew($is_new); } }