You are here

public function MongodbConfigStorage::getAllCollectionNames in MongoDB 8

Gets the existing collections.

A configuration storage can contain multiple sets of configuration objects in partitioned collections. The collection key name identifies the current collection used.

Return value

array An array of existing collection names.

Overrides StorageInterface::getAllCollectionNames

File

src/MongodbConfigStorage.php, line 199
Definition of Drupal\mongodb\Config\MongoStorage.

Class

MongodbConfigStorage

Namespace

Drupal\mongodb

Code

public function getAllCollectionNames() {
  return preg_grep('/^config\\./', $this->mongo
    ->get('config')->db
    ->getCollectionNames());
}