You are here

public static function CalendarHelper::getDisplayRouteName in Calendar 8

Get Route name for a display.

Not sure where is documented but the route names are made in \Drupal\views\EventSubscriber\RouteSubscriber.

Parameters

$view_id:

$display_id:

Return value

string

2 calls to CalendarHelper::getDisplayRouteName()
Calendar::viewOptionsForGranularity in src/Plugin/views/style/Calendar.php
Get options for Views displays that support Calendar with set granularity.
CalendarHelper::getViewsURL in src/CalendarHelper.php
Get the Url object to link to a View display with given arguments.

File

src/CalendarHelper.php, line 946

Class

CalendarHelper
Defines Gregorian Calendar date values.

Namespace

Drupal\calendar

Code

public static function getDisplayRouteName($view_id, $display_id) {
  return 'view.' . $view_id . '.' . $display_id;
}