MenuLinkDefaultForm::__construct

public MenuLinkDefaultForm::__construct(MenuLinkManagerInterface $menu_link_manager, MenuParentFormSelectorInterface $menu_parent_selector, TranslationInterface $string_translation, ModuleHandlerInterface $module_handler)

Constructs a new \Drupal\Core\Menu\Form\MenuLinkDefaultForm.

Parameters

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

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

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler;

File

core/lib/Drupal/Core/Menu/Form/MenuLinkDefaultForm.php, line 71

Class

MenuLinkDefaultForm
Provides an edit form for static menu links.

Namespace

Drupal\Core\Menu\Form

Code

public function __construct(MenuLinkManagerInterface $menu_link_manager, MenuParentFormSelectorInterface $menu_parent_selector, TranslationInterface $string_translation, ModuleHandlerInterface $module_handler) {
  $this->menuLinkManager = $menu_link_manager;
  $this->menuParentSelector = $menu_parent_selector;
  $this->stringTranslation = $string_translation;
  $this->moduleHandler = $module_handler;
}
doc_Drupal
2016-10-29 09:26:57
Comments
Leave a Comment

Please login to continue.