function StorageComparer::moveRenameToUpdate
Moves a rename operation to an update.
Parameters
string $rename: The rename name, as provided by ConfigImporter::createRenameName().
string $collection: (optional) The collection where the configuration is stored. Defaults to the default collection.
Overrides StorageComparerInterface::moveRenameToUpdate
File
- 
              core/
lib/ Drupal/ Core/ Config/ StorageComparer.php, line 354  
Class
- StorageComparer
 - Defines a config storage comparer.
 
Namespace
Drupal\Core\ConfigCode
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.