function RouteMatchInterface::getRouteName
Same name in other branches
- 9 core/lib/Drupal/Core/Routing/RouteMatchInterface.php \Drupal\Core\Routing\RouteMatchInterface::getRouteName()
- 10 core/lib/Drupal/Core/Routing/RouteMatchInterface.php \Drupal\Core\Routing\RouteMatchInterface::getRouteName()
- 11.x core/lib/Drupal/Core/Routing/RouteMatchInterface.php \Drupal\Core\Routing\RouteMatchInterface::getRouteName()
Returns the route name.
Return value
string|null The route name. NULL if no route is matched.
3 methods override RouteMatchInterface::getRouteName()
- CurrentRouteMatch::getRouteName in core/
lib/ Drupal/ Core/ Routing/ CurrentRouteMatch.php - Returns the route name.
- NullRouteMatch::getRouteName in core/
lib/ Drupal/ Core/ Routing/ NullRouteMatch.php - Returns the route name.
- RouteMatch::getRouteName in core/
lib/ Drupal/ Core/ Routing/ RouteMatch.php - Returns the route name.
File
-
core/
lib/ Drupal/ Core/ Routing/ RouteMatchInterface.php, line 28
Class
- RouteMatchInterface
- Provides an interface for classes representing the result of routing.
Namespace
Drupal\Core\RoutingCode
public function getRouteName();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.