You are here

public function DisplayRouterInterface::getRouteName in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/display/DisplayRouterInterface.php \Drupal\views\Plugin\views\display\DisplayRouterInterface::getRouteName()

Returns the route name for the display.

The default route name for a display is views.$view_id.$display_id. Some displays may override existing routes; in these cases, the route that is overridden is returned instead.

Return value

string The name of the route

See also

\Drupal\views\Plugin\views\display\DisplayRouterInterface::alterRoutes()

\Drupal\views\Plugin\views\display\DisplayRouterInterface::getAlteredRouteNames()

1 method overrides DisplayRouterInterface::getRouteName()
PathPluginBase::getRouteName in core/modules/views/src/Plugin/views/display/PathPluginBase.php
Returns the route name for the display.

File

core/modules/views/src/Plugin/views/display/DisplayRouterInterface.php, line 57

Class

DisplayRouterInterface
Defines an interface for displays that can collect routes.

Namespace

Drupal\views\Plugin\views\display

Code

public function getRouteName();