You are here

public function AgreementSubscriber::requestForRedirection in Agreement 3.0.x

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/AgreementSubscriber.php \Drupal\agreement\EventSubscriber\AgreementSubscriber::requestForRedirection()

Executes function to set redirect response if it is required.

Parameters

\Symfony\Component\HttpKernel\Event\RequestEvent $event: The response event.

File

src/EventSubscriber/AgreementSubscriber.php, line 124

Class

AgreementSubscriber
Checks if the current user is required to accept an agreement.

Namespace

Drupal\agreement\EventSubscriber

Code

public function requestForRedirection(RequestEvent $event) {
  $this
    ->checkForRedirection($event);
}