service menu.active_trail in Drupal 8
Same name and namespace in other branches
- 9 core/core.services.yml \menu.active_trail
Class
Drupal\Core\Menu\MenuActiveTrailTags
- needs_destruction
3 string references to menu.active_trail
- SystemMenuBlock::create in core/
modules/ system/ src/ Plugin/ Block/ SystemMenuBlock.php - Creates an instance of the plugin.
- SystemMenuBlock::__construct in core/
modules/ system/ src/ Plugin/ Block/ SystemMenuBlock.php - Constructs a new SystemMenuBlock.
- SystemMenuBlockTest::testConstructorDeprecation in core/
modules/ system/ tests/ src/ Kernel/ Block/ SystemMenuBlockTest.php - @deprecationMessage The menu.active_trail service must be passed to SystemMenuBlock::__construct(), it is required before Drupal 9.0.0. See https://www.drupal.org/node/2669550. @group legacy
File
- core/
core.services.yml - core/core.services.yml
View source
- class: Drupal\Core\Menu\MenuActiveTrail
- arguments:
- - '@plugin.manager.menu.link'
- - '@current_route_match'
- - '@cache.menu'
- - '@lock'
- tags:
- - { name: needs_destruction }