private function CasSubscriber::handleForcedPath in CAS 8
Check if the current path is a forced login path.
Return value
bool TRUE if current path is a forced login path, FALSE otherwise.
2 calls to CasSubscriber::handleForcedPath()
- CasSubscriber::handle in src/
Subscriber/ CasSubscriber.php - The entry point for our subscriber.
- CasSubscriber::on403 in src/
Subscriber/ CasSubscriber.php - Handle 403 errors.
File
- src/
Subscriber/ CasSubscriber.php, line 224
Class
- CasSubscriber
- Provides a CasSubscriber.
Namespace
Drupal\cas\SubscriberCode
private function handleForcedPath() {
if (!$this->forcedLoginEnabled) {
return FALSE;
}
// Check if user provided specific paths to force/not force a login.
$condition = $this->conditionManager
->createInstance('request_path');
$condition
->setConfiguration($this->forcedLoginPaths);
if ($this->conditionManager
->execute($condition)) {
return TRUE;
}
return FALSE;
}