You are here

public static function Drupal::routeMatch in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal.php \Drupal::routeMatch()

Retrieves the currently active route match object.

Return value

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

18 calls to Drupal::routeMatch()
batch_process in core/includes/form.inc
Processes the batch.
comment_form_field_ui_display_overview_form_alter in core/modules/comment/comment.module
Implements hook_form_FORM_ID_alter().
comment_form_field_ui_field_storage_add_form_alter in core/modules/comment/comment.module
Implements hook_form_FORM_ID_alter() for field_ui_field_storage_add_form.
comment_form_field_ui_form_display_overview_form_alter in core/modules/comment/comment.module
Implements hook_form_FORM_ID_alter().
ConfigTranslationFormTest::testConfigTranslationFormAlter in core/modules/config_translation/src/Tests/ConfigTranslationFormTest.php
Tests altering of the configuration translation forms.

... See full list

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