You are here

public function SessionLimitBypassEvent::setBypass in Session Limit 2.x

Same name and namespace in other branches
  1. 8 src/Event/SessionLimitBypassEvent.php \Drupal\session_limit\Event\SessionLimitBypassEvent::setBypass()

Tell the session limit module you want to bypass session limit check.

usage: SessionLimitBypassEvent->bypass(TRUE);

Parameters

bool $bypass: Set to TRUE to bypass. Otherwise don't call this function if at least one listener for this event calls this function with a TRUE argument then session limit check is bypassed.

File

src/Event/SessionLimitBypassEvent.php, line 25

Class

SessionLimitBypassEvent

Namespace

Drupal\session_limit\Event

Code

public function setBypass($bypass) {
  $this->bypass = !empty($bypass) ? TRUE : $this->bypass;
}