function AllowListConfigStorage::rename
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Recipe/AllowListConfigStorage.php \Drupal\Core\Recipe\AllowListConfigStorage::rename()
Renames a configuration object in the storage.
Parameters
string $name: The name of a configuration object to rename.
string $new_name: The new name of a configuration object.
Return value
bool TRUE on success, FALSE otherwise.
Overrides StorageInterface::rename
File
-
core/
lib/ Drupal/ Core/ Recipe/ AllowListConfigStorage.php, line 75
Class
- AllowListConfigStorage
- A read-only storage wrapper that only allows access to certain config names.
Namespace
Drupal\Core\RecipeCode
public function rename($name, $new_name) : never {
throw new \BadMethodCallException('This storage is read-only.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.