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

Breadcrumb

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

function Drupal::routeMatch

Retrieves the currently active route match object.

Return value

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

16 calls to Drupal::routeMatch()
CommentHooks::formFieldUiDisplayOverviewFormAlter in core/modules/comment/src/Hook/CommentHooks.php
Implements hook_form_FORM_ID_alter().
CommentHooks::formFieldUiFieldStorageAddFormAlter in core/modules/comment/src/Hook/CommentHooks.php
Implements hook_form_FORM_ID_alter() for field_ui_field_storage_add_form.
CommentHooks::formFieldUiFormDisplayOverviewFormAlter in core/modules/comment/src/Hook/CommentHooks.php
Implements hook_form_FORM_ID_alter().
ContentTranslationHooks::pageAttachments in core/modules/content_translation/src/Hook/ContentTranslationHooks.php
Implements hook_page_attachments().
FormBase::getRouteMatch in core/lib/Drupal/Core/Form/FormBase.php
Gets the route match.

... See full list

File

core/lib/Drupal.php, line 288

Class

Drupal
Static Service Container wrapper.

Code

public static function routeMatch() {
    return static::getContainer()->get('current_route_match');
}
RSS feed
Powered by Drupal