protected function PrintEngineExceptionSubscriber::getView in Entity Print 8.2
Gets the view from the route data if it exists.
Return value
bool|\Drupal\views\ViewEntityInterface The View or FALSE if it not a view route.
1 call to PrintEngineExceptionSubscriber::getView()
- PrintEngineExceptionSubscriber::handleException in src/
EventSubscriber/ PrintEngineExceptionSubscriber.php - Handles print exceptions.
File
- src/
EventSubscriber/ PrintEngineExceptionSubscriber.php, line 90
Class
- PrintEngineExceptionSubscriber
- Exception event subscriber.
Namespace
Drupal\entity_print\EventSubscriberCode
protected function getView() {
$view_name = $this->routeMatch
->getParameter('view_name');
return $view_name ? $this->entityTypeManager
->getStorage('view')
->load($view_name) : FALSE;
}