function AutoloadingStorage::rename

Same name and namespace in other branches
  1. main core/lib/Drupal/Core/Config/AutoloadingStorage.php \Drupal\Core\Config\AutoloadingStorage::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/Config/AutoloadingStorage.php, line 97

Class

AutoloadingStorage
Defines the autoloading storage.

Namespace

Drupal\Core\Config

Code

public function rename($name, $new_name) : bool {
  return $this->storage
    ->rename($name, $new_name);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.