public static function CalendarHelper::getViewsURL in Calendar 8
Get the Url object to link to a View display with given arguments.
Parameters
\Drupal\views\ViewExecutable $view: The view executable service.
$display_id:
array $args:
Return value
\Drupal\Core\Url Returns url.
1 call to CalendarHelper::getViewsURL()
- CalendarHelper::getURLForGranularity in src/
CalendarHelper.php - Get the Url object that will link to the view for the given granularity and arguments.
File
- src/
CalendarHelper.php, line 929
Class
- CalendarHelper
- Defines Gregorian Calendar date values.
Namespace
Drupal\calendarCode
public static function getViewsURL(ViewExecutable $view, $display_id, array $args = []) {
$route_parameters = static::getViewRouteParameters($args, $view);
$route_name = static::getDisplayRouteName($view
->id(), $display_id);
return Url::fromRoute($route_name, $route_parameters);
}