You are here

public function AutologoutManager::preventJs in Automated Logout 8

Determine if autologout should be prevented.

Return value

bool TRUE if there is a reason not to autologout the current user on the current page.

Overrides AutologoutManagerInterface::preventJs

File

src/AutologoutManager.php, line 155

Class

AutologoutManager
Defines an AutologoutManager service.

Namespace

Drupal\autologout

Code

public function preventJs() {
  foreach ($this->moduleHandler
    ->invokeAll('autologout_prevent') as $prevent) {
    if (!empty($prevent)) {
      return TRUE;
    }
  }
  return FALSE;
}