public function LoginRedirectPerRole::isApplicableOnCurrentPage in Login And Logout Redirect Per Role 8
Checks is login redirect action applicable on current page.
Return value
bool Result of check.
Overrides LoginRedirectPerRoleInterface::isApplicableOnCurrentPage
1 call to LoginRedirectPerRole::isApplicableOnCurrentPage()
- LoginRedirectPerRole::getRedirectUrl in src/
LoginRedirectPerRole.php - Return redirect URL related to requested key and current user.
File
- src/
LoginRedirectPerRole.php, line 79
Class
- LoginRedirectPerRole
- Login And Logout Redirect Per Role helper service.
Namespace
Drupal\login_redirect_per_roleCode
public function isApplicableOnCurrentPage() {
switch ($this->currentRouteMatch
->getRouteName()) {
case 'user.reset':
case 'user.reset.login':
case 'user.reset.form':
return FALSE;
default:
return TRUE;
}
}