Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RouteMatchInterface.php

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

Code

public function getRouteName();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal