You are here

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

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

Constructs a new ReorderChildrenAccess object.

Parameters

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $bundleInfo: Bundle Info.

File

src/Information/ParentCandidate.php, line 36

Class

ParentCandidate
Defines a class for determining if an entity is a parent candidate.

Namespace

Drupal\entity_hierarchy\Information

Code

public function __construct(EntityFieldManagerInterface $entityFieldManager, EntityTypeBundleInfoInterface $bundleInfo) {
  $this->entityFieldManager = $entityFieldManager;
  $this->bundleInfo = $bundleInfo;
}