W3cubDocs

/Drupal 8

public function RouteMatchInterface::getRouteObject

public RouteMatchInterface::getRouteObject()

Returns the route object.

Return value

\Symfony\Component\Routing\Route|null The route object. NULL if no route is matched.

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\Routing

Code

public function getRouteObject();

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!RouteMatchInterface.php/function/RouteMatchInterface::getRouteObject/8.1.x