You are here

class SystemStatusAccessCheck in System Status 8

Hierarchy

Expanded class hierarchy of SystemStatusAccessCheck

1 string reference to 'SystemStatusAccessCheck'
system_status.services.yml in ./system_status.services.yml
system_status.services.yml
1 service uses SystemStatusAccessCheck
access_check.system_status_page in ./system_status.services.yml
Drupal\system_status\Access\SystemStatusAccessCheck

File

src/Access/SystemStatusAccessCheck.php, line 13

Namespace

Drupal\system_status\Access
View 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

Namesort descending Modifiers Type Description Overrides
SystemStatusAccessCheck::access public function
SystemStatusAccessCheck::applies public function Declares whether the access check applies to a specific route or not. Overrides AccessCheckInterface::applies