StorageComparer::getSourceStorage

public StorageComparer::getSourceStorage($collection = StorageInterface::DEFAULT_COLLECTION) Gets the configuration source storage. Parameters string $collection: (optional) The storage collection to use. Defaults to the default collection. Return value \Drupal\Core\Config\StorageInterface Storage object used to read configuration. Overrides StorageComparerInterface::getSourceStorage File core/lib/Drupal/Core/Config/StorageComparer.php, line 121 Class StorageComparer Defines a config sto

StorageComparer::getEmptyChangelist

public StorageComparer::getEmptyChangelist() Gets an empty changelist. Return value array An empty changelist array. Overrides StorageComparerInterface::getEmptyChangelist File core/lib/Drupal/Core/Config/StorageComparer.php, line 151 Class StorageComparer Defines a config storage comparer. Namespace Drupal\Core\Config Code public function getEmptyChangelist() { return array( 'create' => array(), 'update' => array(), 'delete' => array(), 'rename' => array

StorageComparer::getTargetStorage

public StorageComparer::getTargetStorage($collection = StorageInterface::DEFAULT_COLLECTION) Gets the configuration target storage. Parameters string $collection: (optional) The storage collection to use. Defaults to the default collection. Return value \Drupal\Core\Config\StorageInterface Storage object used to write configuration. Overrides StorageComparerInterface::getTargetStorage File core/lib/Drupal/Core/Config/StorageComparer.php, line 136 Class StorageComparer Defines a config st

StorageComparer::hasChanges

public StorageComparer::hasChanges() Checks if there are any operations with changes to process. Until the changelist has been calculated this will always be FALSE. Return value bool TRUE if there are changes to process and FALSE if not. Overrides StorageComparerInterface::hasChanges See also \Drupal\Core\Config\StorageComparerInterface::createChangelist() File core/lib/Drupal/Core/Config/StorageComparer.php, line 378 Class StorageComparer Defines a config storage comparer. Namespace

StorageComparer::moveRenameToUpdate

public StorageComparer::moveRenameToUpdate($rename, $collection = StorageInterface::DEFAULT_COLLECTION) Moves a rename operation to an update. Parameters string $rename: The rename name, as provided by ConfigImporter::createRenameName(). string $collection: (optional) The collection where the configuration is stored. Defaults to the default collection. Overrides StorageComparerInterface::moveRenameToUpdate See also \Drupal\Core\Config\ConfigImporter::createRenameName() File core/lib/Drupal/Co

StorageComparer::getChangelist

public StorageComparer::getChangelist($op = NULL, $collection = StorageInterface::DEFAULT_COLLECTION) Gets the list of differences to import. Parameters string $op: (optional) A change operation. Either delete, create or update. If supplied the returned list will be limited to this operation. string $collection: (optional) The collection to get the changelist for. Defaults to the default collection. Return value array An array of config changes that are yet to be imported. Overrides StorageCo

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\

StorageComparer::createChangelist

public StorageComparer::createChangelist() File core/lib/Drupal/Core/Config/StorageComparer.php, line 201 Class StorageComparer Defines a config storage comparer. Namespace Drupal\Core\Config Code public function createChangelist() { foreach ($this->getAllCollectionNames() as $collection) { $this->changelist[$collection] = $this->getEmptyChangelist(); $this->getAndSortConfigData($collection); $this->addChangelistCreate($collection); $this->addChangel

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 StorageComp

StorageComparer::getAllCollectionNames

public StorageComparer::getAllCollectionNames($include_default = TRUE) Gets the existing collections from both the target and source storage. Parameters bool $include_default: (optional) Include the default collection. Defaults to TRUE. Return value array An array of existing collection names. Overrides StorageComparerInterface::getAllCollectionNames File core/lib/Drupal/Core/Config/StorageComparer.php, line 454 Class StorageComparer Defines a config storage comparer. Namespace Drupal