public function RouteMatch::getRouteName

public RouteMatch::getRouteName()

Returns the route name.

Return value

string|null The route name. NULL if no route is matched.

Overrides RouteMatchInterface::getRouteName

File

core/lib/Drupal/Core/Routing/RouteMatch.php, line 98

Class

RouteMatch
Default object representing the results of routing.

Namespace

Drupal\Core\Routing

Code

public function getRouteName() {
  return $this->routeName;
}

© 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!RouteMatch.php/function/RouteMatch::getRouteName/8.1.x