You are here

public function ViewRevisionsRequest::getUrl 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::getUrl()

File

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

Class

ViewRevisionsRequest
Handles view requests.

Namespace

Drupal\views_revisions

Code

public function getUrl(EntityInterface $view_entity, EntityInterface $source_entity = NULL, $route_name, array $route_options = []) {
  $route_name = $this
    ->getRouteName($view_entity, $source_entity, $route_name);
  $route_parameters = $this
    ->getRouteParameters($view_entity, $source_entity);
  return Url::fromRoute($route_name, $route_parameters, $route_options);
}