You are here

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

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

Constructs a new ReorderChildrenAccess object.

Parameters

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

\Drupal\Core\Routing\RouteMatchInterface $routeMatch: Route match.

File

src/Routing/ReorderChildrenAccess.php, line 40

Class

ReorderChildrenAccess
Defines a class for limiting the children form to entities with hierarchies.

Namespace

Drupal\entity_hierarchy\Routing

Code

public function __construct(ParentCandidateInterface $parentCandidate, RouteMatchInterface $routeMatch) {
  $this->routeMatch = $routeMatch;
  $this->parentCandidate = $parentCandidate;
}