public function MenuForm::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/menu_ui/src/MenuForm.php \Drupal\menu_ui\MenuForm::__construct()
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 78 - Contains \Drupal\menu_ui\MenuForm.
Class
- MenuForm
- Base form for menu edit forms.
Namespace
Drupal\menu_uiCode
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;
}