You are here

public function MenuLinkContentDeriver::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/menu_link_content/src/Plugin/Deriver/MenuLinkContentDeriver.php \Drupal\menu_link_content\Plugin\Deriver\MenuLinkContentDeriver::__construct()

Constructs a MenuLinkContentDeriver instance.

Parameters

\Drupal\Core\Entity\Query\QueryFactory $query_factory: The query factory.

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

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

File

core/modules/menu_link_content/src/Plugin/Deriver/MenuLinkContentDeriver.php, line 57
Contains \Drupal\menu_link_content\Plugin\Deriver\MenuLinkContentDeriver.

Class

MenuLinkContentDeriver
Provides a deriver for user entered paths of menu links.

Namespace

Drupal\menu_link_content\Plugin\Deriver

Code

public function __construct(QueryFactory $query_factory, EntityManagerInterface $entity_manager, MenuLinkManagerInterface $menu_link_manager) {
  $this->queryFactory = $query_factory;
  $this->entityManager = $entity_manager;
  $this->menuLinkManager = $menu_link_manager;
}