You are here

public function MenuLinkContentDeriver::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/menu_link_content/src/Plugin/Deriver/MenuLinkContentDeriver.php \Drupal\menu_link_content\Plugin\Deriver\MenuLinkContentDeriver::__construct()

Constructs a MenuLinkContentDeriver instance.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager: The menu link manager.

File

core/modules/menu_link_content/src/Plugin/Deriver/MenuLinkContentDeriver.php, line 41

Class

MenuLinkContentDeriver
Provides a deriver for user entered paths of menu links.

Namespace

Drupal\menu_link_content\Plugin\Deriver

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, MenuLinkManagerInterface $menu_link_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->menuLinkManager = $menu_link_manager;
}