You are here

public function WardenManager::getLocalToken in Warden 8

Same name and namespace in other branches
  1. 8.2 src/Service/WardenManager.php \Drupal\warden\Service\WardenManager::getLocalToken()
  2. 3.x src/Service/WardenManager.php \Drupal\warden\Service\WardenManager::getLocalToken()

Get the local token and generate it if it is not set.

Return value

string The local token

1 call to WardenManager::getLocalToken()
WardenManager::generateSiteData in src/Service/WardenManager.php
Generate all the site's data for Warden.

File

src/Service/WardenManager.php, line 220

Class

WardenManager
Default controller for the warden module.

Namespace

Drupal\warden\Service

Code

public function getLocalToken() {
  if (!isset($this->localToken)) {
    $this->localToken = $this
      ->generateNewLocalToken();
  }
  return $this->localToken;
}