public function ReorderChildrenAccess::applies in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x src/Routing/ReorderChildrenAccess.php \Drupal\entity_hierarchy\Routing\ReorderChildrenAccess::applies()
Declares whether the access check applies to a specific route or not.
Parameters
\Symfony\Component\Routing\Route $route: The route to consider attaching to.
Return value
bool TRUE if this access checker applies to this route.
Overrides AccessCheckInterface::applies
File
- src/
Routing/ ReorderChildrenAccess.php, line 48
Class
- ReorderChildrenAccess
- Defines a class for limiting the children form to entities with hierarchies.
Namespace
Drupal\entity_hierarchy\RoutingCode
public function applies(Route $route) {
return $route
->hasRequirement(EntityHierarchyRouteProvider::ENTITY_HIERARCHY_HAS_FIELD);
}