You are here

public function KeyInterface::setKeyValue in Key 8

Sets the value of the key.

Parameters

string $key_value: The key value to set.

Return value

string|bool The key value or FALSE if the value could not be set, because the provider does not support setting a key value, for instance.

1 method overrides KeyInterface::setKeyValue()
Key::setKeyValue in src/Entity/Key.php
Sets the value of the key.

File

src/KeyInterface.php, line 99

Class

KeyInterface
Provides an interface defining a Key entity.

Namespace

Drupal\key

Code

public function setKeyValue($key_value);