Change record status: 
Project: 
Introduced in branch: 
11.4.x
Introduced in version: 
11.4.0
Description: 

A new MenuLinkTreeManipulatorsAlterEvent event has been added, which provides the ability to manipulate the menu link tree.

Code example

class MenuLinkTreeEventSubscriber implements EventSubscriberInterface {

  public static function alterMenuLinkManipulators(MenuLinkTreeManipulatorsAlterEvent $event): void {
    // Custom code.
  }

  public static function getSubscribedEvents(): array {
    return [
      MenuLinkTreeManipulatorsAlterEvent::class => ['alterMenuLinkManipulators'],
    ];
  }
}
Impacts: 
Module developers