You are here

public function KeyValueStoreInterface::rename in Drupal 10

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

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);