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\Core\Config
Code
public function getAllCollectionNames($include_default = TRUE) { $collections = array_unique(array_merge($this->sourceStorage->getAllCollectionNames(), $this->targetStorage->getAllCollectionNames())); if ($include_default) { array_unshift($collections, StorageInterface::DEFAULT_COLLECTION); } return $collections; }
Please login to continue.