You are here

public function LoginRedirectPerRole::getLoginRedirectUrl in Login And Logout Redirect Per Role 8

Return URL to redirect on user login.

Return value

\Drupal\Core\Url|null URL to redirect to on success or NULL otherwise.

Overrides LoginRedirectPerRoleInterface::getLoginRedirectUrl

File

src/LoginRedirectPerRole.php, line 95

Class

LoginRedirectPerRole
Login And Logout Redirect Per Role helper service.

Namespace

Drupal\login_redirect_per_role

Code

public function getLoginRedirectUrl() {
  return $this
    ->getRedirectUrl(LoginRedirectPerRoleInterface::CONFIG_KEY_LOGIN);
}