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'); }
Please login to continue.