You are here

public function KeyValueStoreInterface::rename in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php \Drupal\Core\KeyValueStore\KeyValueStoreInterface::rename()
  2. 10 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 102

Class

KeyValueStoreInterface
Defines the interface for key/value store implementations.

Namespace

Drupal\Core\KeyValueStore

Code

public function rename($key, $new_key);