function AuthenticationProviderFilterInterface::appliesToRoutedRequest
Same name in other branches
- 9 core/lib/Drupal/Core/Authentication/AuthenticationProviderFilterInterface.php \Drupal\Core\Authentication\AuthenticationProviderFilterInterface::appliesToRoutedRequest()
- 8.9.x core/lib/Drupal/Core/Authentication/AuthenticationProviderFilterInterface.php \Drupal\Core\Authentication\AuthenticationProviderFilterInterface::appliesToRoutedRequest()
- 10 core/lib/Drupal/Core/Authentication/AuthenticationProviderFilterInterface.php \Drupal\Core\Authentication\AuthenticationProviderFilterInterface::appliesToRoutedRequest()
Checks whether the authentication method is allowed on a given route.
While authentication itself is run before routing, this method is called after routing, hence RouteMatch is available and can be used to inspect route options.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The request.
bool $authenticated: Whether or not the request is authenticated.
Return value
bool TRUE if an authentication method is allowed on the request, otherwise FALSE.
1 method overrides AuthenticationProviderFilterInterface::appliesToRoutedRequest()
- AuthenticationManager::appliesToRoutedRequest in core/
lib/ Drupal/ Core/ Authentication/ AuthenticationManager.php - Checks whether the authentication method is allowed on a given route.
File
-
core/
lib/ Drupal/ Core/ Authentication/ AuthenticationProviderFilterInterface.php, line 33
Class
- AuthenticationProviderFilterInterface
- Restrict authentication methods to a subset of the site.
Namespace
Drupal\Core\AuthenticationCode
public function appliesToRoutedRequest(Request $request, $authenticated);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.