class SystemStatusAccessCheck in System Status 8
Hierarchy
- class \Drupal\system_status\Access\SystemStatusAccessCheck implements AccessCheckInterface
Expanded class hierarchy of SystemStatusAccessCheck
1 string reference to 'SystemStatusAccessCheck'
1 service uses SystemStatusAccessCheck
File
- src/
Access/ SystemStatusAccessCheck.php, line 13
Namespace
Drupal\system_status\AccessView source
class SystemStatusAccessCheck implements AccessCheckInterface {
public function applies(Route $route) {
return '_access_system_status_page';
}
public function access(Route $route, Request $request, AccountInterface $account) {
// return new AccessResultAllowed();
return AccessResult::allowed();
//return static::ALLOW;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SystemStatusAccessCheck:: |
public | function | ||
SystemStatusAccessCheck:: |
public | function |
Declares whether the access check applies to a specific route or not. Overrides AccessCheckInterface:: |