W3cubDocs

/Drupal 8

public function PrivateKey::set

public PrivateKey::set($key)

Sets the private key.

Parameters

string $key: The private key to set.

File

core/lib/Drupal/Core/PrivateKey.php, line 51

Class

PrivateKey
Manages the Drupal private key.

Namespace

Drupal\Core

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!PrivateKey.php/function/PrivateKey::set/8.1.x