diff --git a/core/modules/views/src/ViewExecutable.php b/core/modules/views/src/ViewExecutable.php index 7c3efa7..6484a61 100644 --- a/core/modules/views/src/ViewExecutable.php +++ b/core/modules/views/src/ViewExecutable.php @@ -2261,33 +2261,13 @@ public function unserialize($serialized) { $this->storage = is_object($storage) ? $storage : \Drupal::entityManager()->getStorage('view')->load($storage); - if ($current_display) { - $this->setDisplay($current_display); - } - - if ($args) { - $this->setArguments($args); - } - - if ($current_page) { - $this->setCurrentPage($current_page); - } - - if ($exposed_input) { - $this->setExposedInput($exposed_input); - } - - if ($exposed_data) { - $this->exposed_data = $exposed_data; - } - - if ($exposed_raw_input) { - $this->exposed_raw_input = $exposed_raw_input; - } - - if ($dom_id) { - $this->dom_id = $dom_id; - } + $this->setDisplay($current_display); + $this->setArguments($args); + $this->setCurrentPage($current_page); + $this->setExposedInput($exposed_input); + $this->exposed_data = $exposed_data; + $this->exposed_raw_input = $exposed_raw_input; + $this->dom_id = $dom_id; $this->initHandlers();