function KeyValueStoreInterface::rename
Same name in other branches
- 9 core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php \Drupal\Core\KeyValueStore\KeyValueStoreInterface::rename()
- 8.9.x core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php \Drupal\Core\KeyValueStore\KeyValueStoreInterface::rename()
- 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\KeyValueStoreCode
public function rename($key, $new_key);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.