function DisplayRouterInterface::getRouteName
Same name in other branches
- 9 core/modules/views/src/Plugin/views/display/DisplayRouterInterface.php \Drupal\views\Plugin\views\display\DisplayRouterInterface::getRouteName()
- 8.9.x core/modules/views/src/Plugin/views/display/DisplayRouterInterface.php \Drupal\views\Plugin\views\display\DisplayRouterInterface::getRouteName()
- 11.x 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 58
Class
- DisplayRouterInterface
- Defines an interface for displays that can collect routes.
Namespace
Drupal\views\Plugin\views\displayCode
public function getRouteName();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.