protected RouteSubscriber::getViewsDisplayIDsWithRoute()
Gets all the views and display IDs using a route.
File
- core/modules/views/src/EventSubscriber/RouteSubscriber.php, line 90
Class
- RouteSubscriber
- Builds up the routes of all views.
Namespace
Drupal\views\EventSubscriber
Code
protected function getViewsDisplayIDsWithRoute() { if (!isset($this->viewsDisplayPairs)) { $this->viewsDisplayPairs = array(); // @todo Convert this method to some service. $views = $this->getApplicableViews(); foreach ($views as $data) { list($view_id, $display_id) = $data; $this->viewsDisplayPairs[] = $view_id . '.' . $display_id; } $this->viewsDisplayPairs = array_combine($this->viewsDisplayPairs, $this->viewsDisplayPairs); } return $this->viewsDisplayPairs; }
Please login to continue.