function StorageComparer::moveRenameToUpdate

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::moveRenameToUpdate()
  2. 8.9.x core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::moveRenameToUpdate()
  3. 11.x core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::moveRenameToUpdate()

Overrides StorageComparerInterface::moveRenameToUpdate

File

core/lib/Drupal/Core/Config/StorageComparer.php, line 397

Class

StorageComparer
Defines a config storage comparer.

Namespace

Drupal\Core\Config

Code

public function moveRenameToUpdate($rename, $collection = StorageInterface::DEFAULT_COLLECTION) {
    $names = $this->extractRenameNames($rename);
    $this->removeFromChangelist($collection, 'rename', $rename);
    $this->addChangeList($collection, 'update', [
        $names['new_name'],
    ], $this->sourceNames[$collection]);
}

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