public function RegisterAccessCheck::applies

Implements AccessCheckInterface::applies().

Overrides AccessCheckInterface::applies

File

drupal/core/modules/user/lib/Drupal/user/Access/RegisterAccessCheck.php, line 22
Contains Drupal\user\Access\RegisterAccessCheck.

Class

RegisterAccessCheck
Access check for user registration routes.

Namespace

Drupal\user\Access

Code

public function applies(Route $route) {
  return array_key_exists('_access_user_register', $route
    ->getRequirements());
}