public function CustomAccessCheck::applies in Entity connect 8.2
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/
Access/ CustomAccessCheck.php, line 18
Class
- CustomAccessCheck
- Custom access checking class for entityconnect.
Namespace
Drupal\entityconnect\AccessCode
public function applies(Route $route) {
return $route
->hasRequirement('_entityconnect_access_check');
}