You are here

function PrivateKey::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/PrivateKey.php \Drupal\Core\PrivateKey::__construct()

Constructs the token generator.

Parameters

\Drupal\Core\State\StateInterface $state: The state service.

File

core/lib/Drupal/Core/PrivateKey.php, line 31
Contains \Drupal\Core\PrivateKey.

Class

PrivateKey
Manages the Drupal private key.

Namespace

Drupal\Core

Code

function __construct(StateInterface $state) {
  $this->state = $state;
}