You are here

public function KeyValueStoreInterface::rename in Zircon Profile 8

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

Renames a key.

Parameters

string $key: The key to rename.

string $new_key: The new key name.

3 methods override KeyValueStoreInterface::rename()
DatabaseStorage::rename in core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php
Renames a key.
MemoryStorage::rename in core/lib/Drupal/Core/KeyValueStore/MemoryStorage.php
Renames a key.
NullStorageExpirable::rename in core/lib/Drupal/Core/KeyValueStore/NullStorageExpirable.php
Renames a key.

File

core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php, line 107
Contains \Drupal\Core\KeyValueStore\KeyValueStoreInterface.

Class

KeyValueStoreInterface
Defines the interface for key/value store implementations.

Namespace

Drupal\Core\KeyValueStore

Code

public function rename($key, $new_key);