You are here

public function MenuLinkConfigForm::__construct in Config menu link 8

Constructs a new MenuLinkConfigForm object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager.

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

\Drupal\Core\Menu\MenuParentFormSelectorInterface $menu_parent_form_selector: The menu parent form selector.

\Drupal\Core\Access\AccessManagerInterface $access_manager:

\Drupal\Core\Session\AccountInterface $account:

\Drupal\Core\Path\AliasManagerInterface $alias_manager:

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler:

\Drupal\Core\StringTranslation\TranslationInterface $string_translation:

File

src/Plugin/Menu/Form/MenuLinkConfigForm.php, line 73
Contains \Drupal\menu_link_config\Plugin\Menu\Form\MenuLinkConfigForm.

Class

MenuLinkConfigForm

Namespace

Drupal\menu_link_config\Plugin\Menu\Form

Code

public function __construct(EntityTypeManagerInterface $entity_manager, MenuLinkManagerInterface $menu_link_manager, MenuParentFormSelectorInterface $menu_parent_form_selector, AccessManagerInterface $access_manager, AccountInterface $account, AliasManagerInterface $alias_manager, ModuleHandlerInterface $module_handler, TranslationInterface $string_translation) {
  $this->entityManager = $entity_manager;
  $this->menuLinkManager = $menu_link_manager;
  $this->menuParentSelector = $menu_parent_form_selector;
  $this->accessManager = $access_manager;
  $this->account = $account;
  $this->pathAliasManager = $alias_manager;
  $this
    ->setModuleHandler($module_handler);
  $this
    ->setStringTranslation($string_translation);
}