Drupal::routeMatch

public static Drupal::routeMatch()

Retrieves the currently active route match object.

Return value

\Drupal\Core\Routing\RouteMatchInterface The currently active route match object.

File

core/lib/Drupal.php, line 237
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function routeMatch() {
  return static::getContainer()->get('current_route_match');
}
doc_Drupal
2016-10-29 09:02:49
Comments
Leave a Comment

Please login to continue.