public function 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\ConfigCode
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