You are here

public function HierarchyNodeIsRemovableAccessCheck::__construct in Entity Reference Hierarchy 8

Constructs a HierarchyNodeIsRemovableAccessCheck object.

Parameters

\Drupal\entity_hierarchy\HierarchyManagerInterface $entity_hierarchy_manager: Hierarchy Manager Service.

File

src/Access/HierarchyNodeIsRemovableAccessCheck.php, line 33
Contains Drupal\entity_hierarchy\Access\HierarchyNodeIsRemovableAccessCheck.

Class

HierarchyNodeIsRemovableAccessCheck
Determines whether the requested node can be removed from its entity_hierarchy.

Namespace

Drupal\entity_hierarchy\Access

Code

public function __construct(HierarchyManagerInterface $entity_hierarchy_manager) {
  $this->entity_hierarchyManager = $entity_hierarchy_manager;
}