public function DatabaseStorage::getAllCollectionNames in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Config/DatabaseStorage.php \Drupal\Core\Config\DatabaseStorage::getAllCollectionNames()
- 9 core/lib/Drupal/Core/Config/DatabaseStorage.php \Drupal\Core\Config\DatabaseStorage::getAllCollectionNames()
File
- core/
lib/ Drupal/ Core/ Config/ DatabaseStorage.php, line 324
Class
- DatabaseStorage
- Defines the Database storage.
Namespace
Drupal\Core\ConfigCode
public function getAllCollectionNames() {
try {
return $this->connection
->query('SELECT DISTINCT [collection] FROM {' . $this->connection
->escapeTable($this->table) . '} WHERE [collection] <> :collection ORDER by [collection]', [
':collection' => StorageInterface::DEFAULT_COLLECTION,
])
->fetchCol();
} catch (\Exception $e) {
return [];
}
}