function StorageComparer::getAllCollectionNames

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::getAllCollectionNames()
  2. 10 core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::getAllCollectionNames()
  3. 8.9.x core/lib/Drupal/Core/Config/StorageComparer.php \Drupal\Core\Config\StorageComparer::getAllCollectionNames()

File

core/lib/Drupal/Core/Config/StorageComparer.php, line 453

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.