public function MenuForm::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/menu_ui/src/MenuForm.php \Drupal\menu_ui\MenuForm::__construct()
Constructs a MenuForm object.
Parameters
\Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager: The menu link manager.
\Drupal\Core\Menu\MenuLinkTreeInterface $menu_tree: The menu tree service.
\Drupal\Core\Utility\LinkGeneratorInterface $link_generator: The link generator.
\Drupal\menu_link_content\MenuLinkContentStorageInterface $menu_link_content_storage: The menu link content storage handler.
File
- core/
modules/ menu_ui/ src/ MenuForm.php, line 77
Class
- MenuForm
- Base form for menu edit forms.
Namespace
Drupal\menu_uiCode
public function __construct(MenuLinkManagerInterface $menu_link_manager, MenuLinkTreeInterface $menu_tree, LinkGeneratorInterface $link_generator, MenuLinkContentStorageInterface $menu_link_content_storage) {
$this->menuLinkManager = $menu_link_manager;
$this->menuTree = $menu_tree;
$this->linkGenerator = $link_generator;
$this->menuLinkContentStorage = $menu_link_content_storage;
}