diff --git a/core/modules/views/lib/Drupal/views/DisplayArray.php b/core/modules/views/lib/Drupal/views/DisplayArray.php index 08bb2b6..2fc956c 100644 --- a/core/modules/views/lib/Drupal/views/DisplayArray.php +++ b/core/modules/views/lib/Drupal/views/DisplayArray.php @@ -27,7 +27,7 @@ class DisplayArray implements \ArrayAccess, \Iterator, \Countable { protected $displayHandlers = array(); /** - * Stores all display IDs, coming from $this->view->storage->display. + * Stores all display IDs, coming from $this->view->storage->get('display'). * * @var array */ @@ -45,7 +45,8 @@ public function __construct(ViewExecutable $view) { $this->initializeDisplay('default'); // Store all display IDs to access them easy and fast. - $this->displayIDs = drupal_map_assoc(array_keys($this->view->storage->display)); + $display = $this->view->storage->get('display'); + $this->displayIDs = drupal_map_assoc(array_keys($display)); } /** @@ -71,8 +72,9 @@ protected function initializeDisplay($display_id) { } // Retrieve and initialize the new display handler with data. - $this->displayHandlers[$display_id] = views_get_plugin('display', $this->view->storage->display[$display_id]['display_plugin']); - $this->displayHandlers[$display_id]->init($this->view, $this->view->storage->display[$display_id]); + $display = $this->view->storage->get('display'); + $this->displayHandlers[$display_id] = views_get_plugin('display', $display[$display_id]['display_plugin']); + $this->displayHandlers[$display_id]->init($this->view, $display[$display_id]); // If this is not the default display handler, let it know which is since // it may well utilize some data from the default. if ($display_id != 'default') {