You are here

public function SessionLimit::getMasqueradeIgnore in Session Limit 2.x

Same name and namespace in other branches
  1. 8 src/Services/SessionLimit.php \Drupal\session_limit\Services\SessionLimit::getMasqueradeIgnore()

Return value

bool Should we ignore masqueraded sessions?

3 calls to SessionLimit::getMasqueradeIgnore()
SessionLimit::getUserActiveSessionCount in src/Services/SessionLimit.php
Get the number of active sessions for a user.
SessionLimit::getUserActiveSessions in src/Services/SessionLimit.php
Get a list of active sessions for a user.
SessionLimit::onSessionLimitBypass in src/Services/SessionLimit.php
Event listener, on check for session check bypass.

File

src/Services/SessionLimit.php, line 481

Class

SessionLimit

Namespace

Drupal\session_limit\Services

Code

public function getMasqueradeIgnore() {
  $masqueradeModuleExists = $this->moduleHandler
    ->moduleExists('masquerade');
  if (!$masqueradeModuleExists) {
    return FALSE;
  }
  return $this->configFactory
    ->get('session_limit.settings')
    ->get('session_limit_masquerade_ignore');
}