function NavigationMenuLinkTreeManipulators::__construct

Same name and namespace in other branches
  1. 11.x core/modules/navigation/src/Menu/NavigationMenuLinkTreeManipulators.php \Drupal\navigation\Menu\NavigationMenuLinkTreeManipulators::__construct()

File

core/modules/navigation/src/Menu/NavigationMenuLinkTreeManipulators.php, line 23

Class

NavigationMenuLinkTreeManipulators
Provides a menu link tree manipulator for the navigation menu block.

Namespace

Drupal\navigation\Menu

Code

public function __construct(protected readonly RouteProviderInterface $routeProvider, protected readonly StaticMenuLinkOverridesInterface $overrides, TranslationInterface $translation) {
  $this->setStringTranslation($translation);
}

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