You are here

public function MenuParentFormSelector::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/MenuParentFormSelector.php \Drupal\Core\Menu\MenuParentFormSelector::__construct()

Constructs a \Drupal\Core\Menu\MenuParentFormSelector.

Parameters

\Drupal\Core\Menu\MenuLinkTreeInterface $menu_link_tree: The menu link tree service.

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

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

File

core/lib/Drupal/Core/Menu/MenuParentFormSelector.php, line 43

Class

MenuParentFormSelector
Default implementation of the menu parent form selector service.

Namespace

Drupal\Core\Menu

Code

public function __construct(MenuLinkTreeInterface $menu_link_tree, EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
  $this->menuLinkTree = $menu_link_tree;
  $this->entityTypeManager = $entity_type_manager;
  $this->stringTranslation = $string_translation;
}