You are here

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

Same name and namespace in other branches
  1. 8.2 src/Information/ChildEntityWarningBuilder.php \Drupal\entity_hierarchy\Information\ChildEntityWarningBuilder::__construct()

Constructs a new ChildEntityWarningBuilder object.

Parameters

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

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

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

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

File

src/Information/ChildEntityWarningBuilder.php, line 58

Class

ChildEntityWarningBuilder
Defines a class for building a list of child entity warnings.

Namespace

Drupal\entity_hierarchy\Information

Code

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