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