You are here

protected function UserAuthenticator::getLoginFormRedirection in Social Auth 8.2

Same name and namespace in other branches
  1. 3.x src/User/UserAuthenticator.php \Drupal\social_auth\User\UserAuthenticator::getLoginFormRedirection()

Returns redirection to user login form.

Return value

\Symfony\Component\HttpFoundation\RedirectResponse The redirection response.

3 calls to UserAuthenticator::getLoginFormRedirection()
UserAuthenticator::associateNewProvider in src/User/UserAuthenticator.php
Associates an existing user with a new provider.
UserAuthenticator::authenticateExistingUser in src/User/UserAuthenticator.php
Authenticates and redirects existing users in authentication process.
UserAuthenticator::authenticateNewUser in src/User/UserAuthenticator.php
Authenticates and redirects new users in authentication process.

File

src/User/UserAuthenticator.php, line 392

Class

UserAuthenticator
Manages Drupal authentication tasks for Social Auth.

Namespace

Drupal\social_auth\User

Code

protected function getLoginFormRedirection() {
  return new RedirectResponse(Url::fromRoute('user.login')
    ->toString());
}