public function AuthenticationProviderFilterInterface::appliesToRoutedRequest

public AuthenticationProviderFilterInterface::appliesToRoutedRequest(Request $request, $authenticated)

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.

File

core/lib/Drupal/Core/Authentication/AuthenticationProviderFilterInterface.php, line 33

Class

AuthenticationProviderFilterInterface
Restrict authentication methods to a subset of the site.

Namespace

Drupal\Core\Authentication

Code

public function appliesToRoutedRequest(Request $request, $authenticated);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Authentication!AuthenticationProviderFilterInterface.php/function/AuthenticationProviderFilterInterface::appliesToRoutedRequest/8.1.x