You are here

public function ParentEntityReactionBase::__construct in Entity Reference Hierarchy 8.2

Same name and namespace in other branches
  1. 3.x src/Storage/ParentEntityReactionBase.php \Drupal\entity_hierarchy\Storage\ParentEntityReactionBase::__construct()

Constructs a new ParentEntityRevisionUpdater object.

Parameters

\Drupal\entity_hierarchy\Storage\NestedSetStorageFactory $nestedSetStorageFactory: Nested set storage factory.

\Drupal\entity_hierarchy\Storage\NestedSetNodeKeyFactory $nodeKeyFactory: Node key factory.

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

1 call to ParentEntityReactionBase::__construct()
ParentEntityDeleteUpdater::__construct in src/Storage/ParentEntityDeleteUpdater.php
Constructs a new ParentEntityRevisionUpdater object.
1 method overrides ParentEntityReactionBase::__construct()
ParentEntityDeleteUpdater::__construct in src/Storage/ParentEntityDeleteUpdater.php
Constructs a new ParentEntityRevisionUpdater object.

File

src/Storage/ParentEntityReactionBase.php, line 47

Class

ParentEntityReactionBase
Defines a base class for reacting to parent entity updates.

Namespace

Drupal\entity_hierarchy\Storage

Code

public function __construct(NestedSetStorageFactory $nestedSetStorageFactory, NestedSetNodeKeyFactory $nodeKeyFactory, ParentCandidateInterface $parentCandidate) {
  $this->nestedSetStorageFactory = $nestedSetStorageFactory;
  $this->nodeKeyFactory = $nodeKeyFactory;
  $this->parentCandidate = $parentCandidate;
}