* @throws \Drupal\Core\Config\StorageException
* If a database error occurs.
*/
- protected function ensureTableExists() {
+ protected function ensureTableExists() {
try {
if (!$this->connection->schema()->tableExists($this->table)) {
$this->connection->schema()->createTable($this->table, static::schemaDefinition());
/**
* Defines the schema for the configuration table.
+ *
+ * @internal
*/
protected static function schemaDefinition() {
$schema = [
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]
+ ':collection' => StorageInterface::DEFAULT_COLLECTION,
+ ]
)->fetchCol();
}
catch (\Exception $e) {