current_route_match

Same name and namespace in other branches
  1. 11.x core/core.services.yml \current_route_match
  2. 10 core/core.services.yml \current_route_match
  3. 9 core/core.services.yml \current_route_match
  4. 8.9.x core/core.services.yml \current_route_match

Class

Drupal\Core\Routing\CurrentRouteMatch
8 string references to current_route_match
ConfigTranslationFormTest::testConfigTranslationFormAlter in core/modules/config_translation/tests/src/Kernel/ConfigTranslationFormTest.php
Tests altering of the configuration translation forms.
ContentPreprocess::create in core/modules/content_moderation/src/ContentPreprocess.php
Instantiates a new instance of this class.
Drupal::routeMatch in core/lib/Drupal.php
Retrieves the currently active route match object.
EntityController::create in core/lib/Drupal/Core/Entity/Controller/EntityController.php
HelpBlock::create in core/modules/help/src/Plugin/Block/HelpBlock.php

... See full list

File

core/core.services.yml

View source
  1. class: Drupal\Core\Routing\CurrentRouteMatch
  2. arguments:
  3. - '@request_stack'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.