private function CasSubscriber::isIgnoreableRoute in CAS 8
Checks current request route against a list of routes we want to ignore.
Return value
bool TRUE if we should ignore this request, FALSE otherwise.
1 call to CasSubscriber::isIgnoreableRoute()
- CasSubscriber::handle in src/
Subscriber/ CasSubscriber.php - The entry point for our subscriber.
File
- src/
Subscriber/ CasSubscriber.php, line 335
Class
- CasSubscriber
- Provides a CasSubscriber.
Namespace
Drupal\cas\SubscriberCode
private function isIgnoreableRoute() {
$routes_to_ignore = [
'cas.service',
'cas.proxyCallback',
'cas.login',
'cas.legacy_login',
'cas.logout',
'system.cron',
];
$current_route = $this->routeMatcher
->getRouteName();
if (in_array($current_route, $routes_to_ignore)) {
return TRUE;
}
return FALSE;
}