You are here

public function AutologoutManagerInterface::getUserTimeout in Automated Logout 8

Get a user's timeout in seconds.

Parameters

int $uid: (Optional) Provide a user's uid to get the timeout for. Default is the logged in user.

Return value

int The number of seconds the user can be idle for before being logged out. A value of 0 means no timeout.

1 method overrides AutologoutManagerInterface::getUserTimeout()
AutologoutManager::getUserTimeout in src/AutologoutManager.php
Get a user's timeout in seconds.

File

src/AutologoutManagerInterface.php, line 55

Class

AutologoutManagerInterface
Interface for AutologoutManager.

Namespace

Drupal\autologout

Code

public function getUserTimeout($uid = NULL);