function KeyValueStoreInterface::rename

Same name in other branches
  1. 8.9.x 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()
  3. 11.x 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 103

Class

KeyValueStoreInterface
Defines the interface for key/value store implementations.

Namespace

Drupal\Core\KeyValueStore

Code

public function rename($key, $new_key);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.