public function SessionLimitDisconnectEvent::preventDisconnect in Session Limit 2.x
Same name and namespace in other branches
- 8 src/Event/SessionLimitDisconnectEvent.php \Drupal\session_limit\Event\SessionLimitDisconnectEvent::preventDisconnect()
Call to prevent the session being disconnected.
Parameters
bool $state: Set to TRUE to prevent the disconnection (default) any other value is ignored. Just one listener to the event calling this will prevent the disconnection.
File
- src/
Event/ SessionLimitDisconnectEvent.php, line 65
Class
Namespace
Drupal\session_limit\EventCode
public function preventDisconnect($state = TRUE) {
$this->preventDisconnect = !empty($state) ? TRUE : $this->preventDisconnect;
}