protected function SocialAuthUserManager::getLoginPostPath in Social Auth 8
Returns the Post Login Path.
Return value
string Post Login Path to which the user would be redirected after login.
2 calls to SocialAuthUserManager::getLoginPostPath()
- SocialAuthUserManager::authenticateExistingUser in src/SocialAuthUserManager.php 
- Authenticates and redirects existing users in authentication process.
- SocialAuthUserManager::authenticateNewUser in src/SocialAuthUserManager.php 
- Authenticates and redirects new users in authentication process.
File
- src/SocialAuthUserManager.php, line 460 
Class
- SocialAuthUserManager
- Contains all logic that is related to Drupal user management.
Namespace
Drupal\social_authCode
protected function getLoginPostPath() {
  $post_login = $this->configFactory
    ->get('social_auth.settings')
    ->get('post_login');
  $routes = $this->routeProvider
    ->getRoutesByNames(array(
    $post_login,
  ));
  if (empty($routes)) {
    // Route does not exist so just redirect to path.
    return new RedirectResponse(Url::fromUserInput($post_login)
      ->toString());
  }
  else {
    return $this
      ->redirect($post_login);
  }
}