You are here

public function ViewRevisionsRequest::getRouteName in Config Entity Revisions 8

Same name and namespace in other branches
  1. 1.x modules/views_revisions/src/ViewsRevisionsRequest.php \Drupal\views_revisions\ViewRevisionsRequest::getRouteName()
1 call to ViewRevisionsRequest::getRouteName()
ViewRevisionsRequest::getUrl in modules/views_revisions/src/ViewsRevisionsRequest.php

File

modules/views_revisions/src/ViewsRevisionsRequest.php, line 248

Class

ViewRevisionsRequest
Handles view requests.

Namespace

Drupal\views_revisions

Code

public function getRouteName(EntityInterface $view_entity, EntityInterface $source_entity = NULL, $route_name) {
  if (!$this
    ->hasSourceEntityViewRoutes($source_entity)) {
    $source_entity = NULL;
  }
  return $this
    ->getBaseRouteName($view_entity, $source_entity) . '.' . $route_name;
}