You are here

public function AutologoutManager::refreshOnly in Automated Logout 8

Determine if connection should be refreshed.

Return value

bool TRUE if something about the current context should keep the connection open. FALSE and the standard countdown to autologout applies.

Overrides AutologoutManagerInterface::refreshOnly

File

src/AutologoutManager.php, line 168

Class

AutologoutManager
Defines an AutologoutManager service.

Namespace

Drupal\autologout

Code

public function refreshOnly() {
  foreach ($this->moduleHandler
    ->invokeAll('autologout_refresh_only') as $module_refresh_only) {
    if (!empty($module_refresh_only)) {
      return TRUE;
    }
  }
  return FALSE;
}