class PrivateKey (View source)

Manages the Drupal private key.

Properties

protected StateInterface $state

The state service.

Methods

__construct(StateInterface $state)

Constructs the private key object.

string
get()

Gets the private key.

set(string $key)

Sets the private key.

string
create()

Creates a new private key.

Details

__construct(StateInterface $state)

Constructs the private key object.

Parameters

StateInterface $state

The state service.

string get()

Gets the private key.

Return Value

string

The private key.

set(string $key)

Sets the private key.

Parameters

string $key

The private key to set.

protected string create()

Creates a new private key.

Return Value

string

The private key.