public function CasPreUserLoadRedirectEvent::setRedirectResponse in CAS 8
Same name and namespace in other branches
- 2.x src/Event/CasPreUserLoadRedirectEvent.php \Drupal\cas\Event\CasPreUserLoadRedirectEvent::setRedirectResponse()
Sets an HTTP redirect response.
Subscribers may decide to trigger a redirect just after the attempt to find a local Drupal user account.
Parameters
\Symfony\Component\HttpFoundation\RedirectResponse $redirect_response: The HTTP redirect response to be set along with the event.
Return value
$this
File
- src/
Event/ CasPreUserLoadRedirectEvent.php, line 119
Class
- CasPreUserLoadRedirectEvent
- Allows third-party code to inject user interaction into the flow.
Namespace
Drupal\cas\EventCode
public function setRedirectResponse(RedirectResponse $redirect_response) {
$this->redirectResponse = $redirect_response;
return $this;
}