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.
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');
}