function StorageComparer::extractRenameNames

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

Overrides StorageComparerInterface::extractRenameNames

1 call to StorageComparer::extractRenameNames()
StorageComparer::moveRenameToUpdate in core/lib/Drupal/Core/Config/StorageComparer.php
Moves a rename operation to an update.

File

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

Class

StorageComparer
Defines a config storage comparer.

Namespace

Drupal\Core\Config

Code

public function extractRenameNames($name) {
    $names = explode('::', $name, 2);
    return [
        'old_name' => $names[0],
        'new_name' => $names[1],
    ];
}

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