public function KeyValueStoreInterface::rename in Service Container 7
Same name and namespace in other branches
- 7.2 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 lib/
Drupal/ Core/ KeyValueStore/ DatabaseStorage.php - Renames a key.
- MemoryStorage::rename in lib/
Drupal/ Core/ KeyValueStore/ MemoryStorage.php - Renames a key.
- NullStorageExpirable::rename in lib/
Drupal/ Core/ KeyValueStore/ NullStorageExpirable.php - Renames a key.
File
- lib/
Drupal/ Core/ KeyValueStore/ KeyValueStoreInterface.php, line 107 - Contains \Drupal\Core\KeyValueStore\KeyValueStoreInterface.
Class
- KeyValueStoreInterface
- Defines the interface for key/value store implementations.
Namespace
Drupal\Core\KeyValueStoreCode
public function rename($key, $new_key);