You are here

public function PrivateKey::set in Zircon Profile 8

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

Sets the private key.

Parameters

string $key: The private key to set.

1 call to PrivateKey::set()
PrivateKey::get in core/lib/Drupal/Core/PrivateKey.php
Gets the private key.

File

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

Class

PrivateKey
Manages the Drupal private key.

Namespace

Drupal\Core

Code

public function set($key) {
  return $this->state
    ->set('system.private_key', $key);
}