You are here

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

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

Constructs a new ChildOfMicrositeLookup.

Parameters

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

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

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

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

File

modules/entity_hierarchy_microsite/src/ChildOfMicrositeLookup.php, line 57

Class

ChildOfMicrositeLookup
Defines a class for looking up a microsite given a node.

Namespace

Drupal\entity_hierarchy_microsite

Code

public function __construct(EntityFieldManagerInterface $entityFieldManager, EntityTypeManagerInterface $entityTypeManager, NestedSetStorageFactory $nestedSetStorageFactory, NestedSetNodeKeyFactory $nodeKeyFactory) {
  $this->entityFieldManager = $entityFieldManager;
  $this->entityTypeManager = $entityTypeManager;
  $this->nestedSetStorageFactory = $nestedSetStorageFactory;
  $this->nodeKeyFactory = $nodeKeyFactory;
}