You are here

public function KeyProviderSettableValueInterface::deleteKeyValue in Key 8

Deletes the value of a key.

Parameters

\Drupal\key\KeyInterface $key: The key whose value will be deleted.

Return value

string TRUE if successful, FALSE if unsuccessful.

2 methods override KeyProviderSettableValueInterface::deleteKeyValue()
ConfigKeyProvider::deleteKeyValue in src/Plugin/KeyProvider/ConfigKeyProvider.php
Deletes the value of a key.
State::deleteKeyValue in tests/modules/key_test/src/Plugin/KeyProvider/State.php
Deletes the value of a key.

File

src/Plugin/KeyProviderSettableValueInterface.php, line 34

Class

KeyProviderSettableValueInterface
Defines an interface for provider plugins that allow setting a key value.

Namespace

Drupal\key\Plugin

Code

public function deleteKeyValue(KeyInterface $key);