You are here

public function ParentEntityDeleteUpdater::__construct in Entity Reference Hierarchy 8.2

Same name and namespace in other branches
  1. 3.x src/Storage/ParentEntityDeleteUpdater.php \Drupal\entity_hierarchy\Storage\ParentEntityDeleteUpdater::__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.

\Drupal\entity_hierarchy\Storage\EntityTreeNodeMapperInterface $treeNodeMapper: Tree node mapper.

Overrides ParentEntityReactionBase::__construct

File

src/Storage/ParentEntityDeleteUpdater.php, line 33

Class

ParentEntityDeleteUpdater
Defines a class for updating the tree when a parent is deleted.

Namespace

Drupal\entity_hierarchy\Storage

Code

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