You are here

public function StorageItem::rename in Express 8

Renames a key.

Parameters

string $key: The key to rename.

string $new_key: The new key name.

Overrides MemoryStorage::rename

File

themes/contrib/bootstrap/src/Utility/StorageItem.php, line 116
Contains \Drupal\bootstrap\Utility\StorageItem.

Class

StorageItem
Theme Storage Item.

Namespace

Drupal\bootstrap\Utility

Code

public function rename($key, $new_key) {
  parent::rename($key, $new_key);
  $this
    ->changed();
}