StorageComparerInterface
interface StorageComparerInterface (View source)
Defines an interface for comparison of configuration storage objects.
Methods
Gets the configuration source storage.
Gets the configuration target storage.
Gets an empty changelist.
Gets the list of differences to import.
Recalculates the differences.
Checks if there are any operations with changes to process.
Validates that the system.site::uuid in the source and target match.
Moves a rename operation to an update.
Extracts old and new configuration names from a configuration change name.
Gets the existing collections from both the target and source storage.
Details
StorageInterface
getSourceStorage(string $collection = StorageInterface::DEFAULT_COLLECTION)
Gets the configuration source storage.
StorageInterface
getTargetStorage(string $collection = StorageInterface::DEFAULT_COLLECTION)
Gets the configuration target storage.
array
getEmptyChangelist()
Gets an empty changelist.
array
getChangelist(string $op = NULL, string $collection = StorageInterface::DEFAULT_COLLECTION)
Gets the list of differences to import.
$this
reset()
Recalculates the differences.
bool
hasChanges()
Checks if there are any operations with changes to process.
Until the changelist has been calculated this will always be FALSE.
bool
validateSiteUuid()
Validates that the system.site::uuid in the source and target match.
moveRenameToUpdate(string $rename, string $collection = StorageInterface::DEFAULT_COLLECTION)
Moves a rename operation to an update.
array
extractRenameNames(string $name)
Extracts old and new configuration names from a configuration change name.
array
getAllCollectionNames(bool $include_default = TRUE)
Gets the existing collections from both the target and source storage.