You are here

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

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

Constructs a new MicrositeMenuItemDeriver.

Parameters

\Drupal\entity_hierarchy\Storage\NestedSetStorageFactory $nestedSetStorageFactory: Storage.

\Drupal\entity_hierarchy\Storage\EntityTreeNodeMapperInterface $mapper: Mapper.

\Drupal\entity_hierarchy\Information\ParentCandidateInterface $candidate: Candidate.

\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: Field manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Type manager.

\Drupal\entity_hierarchy\Storage\NestedSetNodeKeyFactory $keyFactory: Key factory.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.

File

modules/entity_hierarchy_microsite/src/MicrositeMenuLinkDiscovery.php, line 88

Class

MicrositeMenuLinkDiscovery
Defines a class for microsite menu link discovery.

Namespace

Drupal\entity_hierarchy_microsite

Code

public function __construct(NestedSetStorageFactory $nestedSetStorageFactory, EntityTreeNodeMapperInterface $mapper, ParentCandidateInterface $candidate, EntityFieldManagerInterface $entityFieldManager, EntityTypeManagerInterface $entityTypeManager, NestedSetNodeKeyFactory $keyFactory, ModuleHandlerInterface $moduleHandler) {
  $this->nestedSetStorageFactory = $nestedSetStorageFactory;
  $this->mapper = $mapper;
  $this->candidate = $candidate;
  $this->entityFieldManager = $entityFieldManager;
  $this->entityTypeManager = $entityTypeManager;
  $this->keyFactory = $keyFactory;
  $this->moduleHandler = $moduleHandler;
}