On this page
public function 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\Core\ConfigCode
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;
}
© 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::getAllCollectionNames/8.1.x