You are here

public function SessionLimit::hasMessageSeverity in Session Limit 2.x

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

return @bool

1 call to SessionLimit::hasMessageSeverity()
SessionLimit::sessionDisconnect in src/Services/SessionLimit.php
Disconnect a sessionId.

File

src/Services/SessionLimit.php, line 494

Class

SessionLimit

Namespace

Drupal\session_limit\Services

Code

public function hasMessageSeverity() {
  $severity = $this
    ->getMessageSeverity();
  return !empty($severity) && in_array($severity, [
    'error',
    'warning',
    'status',
  ]);
}