You are here

public function CasPreUserLoadRedirectEvent::setRedirectResponse in CAS 2.x

Same name and namespace in other branches
  1. 8 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\Event

Code

public function setRedirectResponse(RedirectResponse $redirect_response) {
  $this->redirectResponse = $redirect_response;
  return $this;
}