You are here

public static function SessionLimit::getActions in Session Limit 2.x

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

Return value

array Keys are session limit action ids Values are text descriptions of each action.

1 call to SessionLimit::getActions()
SettingsForm::buildForm in src/Form/SettingsForm.php
Form constructor.

File

src/Services/SessionLimit.php, line 38

Class

SessionLimit

Namespace

Drupal\session_limit\Services

Code

public static function getActions() {
  return [
    SessionLimit::ACTION_ASK => t('Ask user which session to end.'),
    SessionLimit::ACTION_DROP_OLDEST => t('Automatically drop the oldest sessions.'),
    SessionLimit::ACTION_PREVENT_NEW => t('Prevent creating of any new sessions.'),
  ];
}