StorageComparer::extractRenameNames

public StorageComparer::extractRenameNames($name)

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()

File

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

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],
  );
}
doc_Drupal
2016-10-29 09:44:38
Comments
Leave a Comment

Please login to continue.