public function KeyValueStoreInterface::rename in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php \Drupal\Core\KeyValueStore\KeyValueStoreInterface::rename()
- 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\KeyValueStoreCode
public function rename($key, $new_key);