You are here

public function StorageComparer::extractRenameNames in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::extractRenameNames()

Extracts old and new configuration names from a configuration change name.

Parameters

string $name: The configuration change name, as provided by ConfigImporter::createRenameName().

Return value

array An associative array of configuration names. The array keys are 'old_name' and 'new_name' representing the old and new configuration object names during a rename operation.

Overrides StorageComparerInterface::extractRenameNames

See also

\Drupal\Core\Config\StorageComparer::createRenameNames()

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 448
Contains \Drupal\Core\Config\StorageComparer.

Class

StorageComparer
Defines a config storage comparer.

Namespace

Drupal\Core\Config

Code

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