return $events;
} /**
* Gets all the views and display IDs using a route.
*/
protected function getViewsDisplayIDsWithRoute() { if (!
isset($this->viewsDisplayPairs
)) { $this->viewsDisplayPairs =
[];
// @todo Convert this method to some service.
$views =
$this->
getApplicableViews();
foreach ($views as $data) { [$view_id,
$display_id] =
$data;
$this->viewsDisplayPairs
[] =
$view_id . '.' .
$display_id;
} $this->viewsDisplayPairs =
array_combine($this->viewsDisplayPairs,
$this->viewsDisplayPairs
);
} return $this->viewsDisplayPairs;
} /**
* Returns a set of route objects.
*
* @return \Symfony\Component\Routing\RouteCollection
* A route collection.
*/