diff --git a/core/modules/views/src/ViewExecutable.php b/core/modules/views/src/ViewExecutable.php index 9f78cf2..c00e605 100644 --- a/core/modules/views/src/ViewExecutable.php +++ b/core/modules/views/src/ViewExecutable.php @@ -2206,7 +2206,7 @@ public function calculateDependencies() { */ public function serialize() { return serialize([ - $this->storage, + $this->storage->id(), $this->current_display, $this->args, $this->current_page, @@ -2222,12 +2222,12 @@ public function serialize() { * {@inheritdoc} */ public function unserialize($serialized) { - list($storage, $current_display, $args, $current_page, $exposed_input, $exposed_raw_input, $exposed_data, $dom_id, $executed) = unserialize($serialized); + list($storage_id, $current_display, $args, $current_page, $exposed_input, $exposed_raw_input, $exposed_data, $dom_id, $executed) = unserialize($serialized); $this->setRequest(\Drupal::request()); $this->user = \Drupal::currentUser(); - $this->storage = $storage; + $this->storage = \Drupal::entityManager()->getStorage('view')->load($storage_id); $this->setDisplay($current_display); $this->setArguments($args); $this->setCurrentPage($current_page);