You are here

public function EntityHooks::__construct in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 modules/entity_hierarchy_microsite/src/EntityHooks.php \Drupal\entity_hierarchy_microsite\EntityHooks::__construct()

Constructs a new EntityHooks.

Parameters

\Drupal\Core\Menu\MenuLinkManagerInterface $menuLinkManager: Menu link manager.

\Drupal\entity_hierarchy\Information\ParentCandidateInterface $parentCandidate: Parent candidate.

\Drupal\entity_hierarchy_microsite\ChildOfMicrositeLookupInterface $childOfMicrositeLookup: Microsite lookup.

\Drupal\entity_hierarchy_microsite\MicrositeMenuLinkDiscoveryInterface $menuLinkDiscovery: Discovery.

\Drupal\Core\Menu\MenuLinkTreeInterface $menuLinkTree: Menu link tree.

File

modules/entity_hierarchy_microsite/src/EntityHooks.php, line 76

Class

EntityHooks
Defines a class for entity hooks for the module.

Namespace

Drupal\entity_hierarchy_microsite

Code

public function __construct(MenuLinkManagerInterface $menuLinkManager, ParentCandidateInterface $parentCandidate, ChildOfMicrositeLookupInterface $childOfMicrositeLookup, MicrositeMenuLinkDiscoveryInterface $menuLinkDiscovery, MenuLinkTreeInterface $menuLinkTree) {
  $this->menuLinkTree = $menuLinkTree;
  $this->menuLinkManager = $menuLinkManager;
  $this->parentCandidate = $parentCandidate;
  $this->childOfMicrositeLookup = $childOfMicrositeLookup;
  $this->menuLinkDiscovery = $menuLinkDiscovery;
}