You are here

function autologout_autologout_refresh_only in Automated Logout 8

Same name and namespace in other branches
  1. 6.4 autologout.module \autologout_autologout_refresh_only()
  2. 7.4 autologout.module \autologout_autologout_refresh_only()

Implements hook_autologout_refresh_only().

File

./autologout.module, line 171
Automated Logout - Module.

Code

function autologout_autologout_refresh_only() {
  if (!\Drupal::config('autologout.settings')
    ->get('enforce_admin') && \Drupal::service('router.admin_context')
    ->isAdminRoute(\Drupal::routeMatch()
    ->getRouteObject())) {
    return TRUE;
  }
}