public StorageComparer::extractRenameNames($name)
Extracts old and new configuration names from a configuration change name.
string $name: The configuration change name, as provided by ConfigImporter::createRenameName().
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
\Drupal\Core\Config\StorageComparer::createRenameNames()
public function extractRenameNames($name) { $names = explode('::', $name, 2); return array( 'old_name' => $names[0], 'new_name' => $names[1], ); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!StorageComparer.php/function/StorageComparer::extractRenameNames/8.1.x