public MenuForm::__construct(QueryFactory $entity_query_factory, MenuLinkManagerInterface $menu_link_manager, MenuLinkTreeInterface $menu_tree, LinkGeneratorInterface $link_generator)
Constructs a MenuForm object.
Parameters
\Drupal\Core\Entity\Query\QueryFactory $entity_query_factory: The factory for entity queries.
\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.
File
- core/modules/menu_ui/src/MenuForm.php, line 73
Class
- MenuForm
- Base form for menu edit forms.
Namespace
Drupal\menu_ui
Code
public function __construct(QueryFactory $entity_query_factory, MenuLinkManagerInterface $menu_link_manager, MenuLinkTreeInterface $menu_tree, LinkGeneratorInterface $link_generator) { $this->entityQueryFactory = $entity_query_factory; $this->menuLinkManager = $menu_link_manager; $this->menuTree = $menu_tree; $this->linkGenerator = $link_generator; }
Please login to continue.