protected function StorageComparer::createRenameName

protected StorageComparer::createRenameName($name1, $name2)

Creates a rename name from the old and new names for the object.

Parameters

string $old_name: The old configuration object name.

string $new_name: The new configuration object name.

Return value

string The configuration change name that encodes both the old and the new name.

See also

\Drupal\Core\Config\StorageComparerInterface::extractRenameNames()

File

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

Class

StorageComparer
Defines a config storage comparer.

Namespace

Drupal\Core\Config

Code

protected function createRenameName($name1, $name2) {
  return $name1 . '::' . $name2;
}

© 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::createRenameName/8.1.x