reverted: --- b/core/modules/views/src/ViewExecutable.php +++ a/core/modules/views/src/ViewExecutable.php @@ -2166,22 +2166,4 @@ return $this->storage->calculateDependencies(); } - /** - * {@inheritdoc} - */ - public function __sleep() { - $this->storage = $this->storage->id(); - return array('storage', 'current_display'); - } - - /** - * {@inheritdoc} - */ - public function __wakeup() { - $this->storage = \Drupal::entityManager()->getStorage('view')->load($this->storage); - $this->user = \Drupal::currentUser(); - $this->setDisplay($this->current_display); - $this->initHandlers(); - } - } only in patch2: unchanged: --- a/core/modules/views/lib/Drupal/views/ViewExecutable.php +++ b/core/modules/views/lib/Drupal/views/ViewExecutable.php @@ -2164,4 +2164,21 @@ public function calculateDependencies() { return $this->storage->calculateDependencies(); } + /** + * {@inheritdoc} + */ + public function __sleep() { + $this->storage = $this->storage->id(); + return array('storage', 'current_display'); + } + + /** + * {@inheritdoc} + */ + public function __wakeup() { + $this->storage = \Drupal::entityManager()->getStorage('view')->load($this->storage); + $this->setDisplay($this->current_display); + $this->initHandlers(); + } + }