StorageComparerInterface::getAllCollectionNames

public StorageComparerInterface::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. File core/lib/Drupal/Core/Config/StorageComparerInterface.php, line 123 Class StorageComparerInterface Defines an interface for comparison of configuration storage objects. Namespace Dr

StorageComparerInterface::getChangelist

public StorageComparerInterface::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. File core/

StorageComparerInterface::getEmptyChangelist

public StorageComparerInterface::getEmptyChangelist() Gets an empty changelist. Return value array An empty changelist array. File core/lib/Drupal/Core/Config/StorageComparerInterface.php, line 40 Class StorageComparerInterface Defines an interface for comparison of configuration storage objects. Namespace Drupal\Core\Config Code public function getEmptyChangelist();

StorageComparerInterface::getSourceStorage

public StorageComparerInterface::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. File core/lib/Drupal/Core/Config/StorageComparerInterface.php, line 20 Class StorageComparerInterface Defines an interface for comparison of configur

StorageComparerInterface::extractRenameNames

public StorageComparerInterface::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. See also \Drupal\Core\Config\StorageComparer::createRenameNames

StorageComparerInterface

Defines an interface for comparison of configuration storage objects. Hierarchy interface \Drupal\Core\Config\StorageComparerInterface File core/lib/Drupal/Core/Config/StorageComparerInterface.php, line 8 Namespace Drupal\Core\Config Members Name Modifiers Type Description StorageComparerInterface::extractRenameNames public function Extracts old and new configuration names from a configuration change name. StorageComparerInterface::getAllCollectionNames public func

StorageComparer::reset

public StorageComparer::reset() Recalculates the differences. Return value \Drupal\Core\Config\StorageComparerInterface An object which implements the StorageComparerInterface. Overrides StorageComparerInterface::reset File core/lib/Drupal/Core/Config/StorageComparer.php, line 366 Class StorageComparer Defines a config storage comparer. Namespace Drupal\Core\Config Code public function reset() { $this->changelist = array(StorageInterface::DEFAULT_COLLECTION => $this->getEmp

StorageComparer::removeFromChangelist

protected StorageComparer::removeFromChangelist($collection, $op, $name) Removes the entry from the given operation changelist for the given name. Parameters string $collection: The storage collection to operate on. string $op: The changelist to act on. Either delete, create, rename or update. string $name: The name of the configuration to remove. File core/lib/Drupal/Core/Config/StorageComparer.php, line 347 Class StorageComparer Defines a config storage comparer. Namespace Drupal\Cor

StorageComparer::__construct

public StorageComparer::__construct(StorageInterface $source_storage, StorageInterface $target_storage, ConfigManagerInterface $config_manager) Constructs the Configuration storage comparer. Parameters \Drupal\Core\Config\StorageInterface $source_storage: Storage object used to read configuration. \Drupal\Core\Config\StorageInterface $target_storage: Storage object used to write configuration. \Drupal\Core\Config\ConfigManagerInterface $config_manager: The configuration manager. File core/lib/

StorageComparer::validateSiteUuid

public StorageComparer::validateSiteUuid() Validates that the system.site::uuid in the source and target match. Return value bool TRUE if identical, FALSE if not. Overrides StorageComparerInterface::validateSiteUuid File core/lib/Drupal/Core/Config/StorageComparer.php, line 392 Class StorageComparer Defines a config storage comparer. Namespace Drupal\Core\Config Code public function validateSiteUuid() { $source = $this->sourceStorage->read('system.site'); $target = $this->