public function DatabaseStorage::exists

Implements Drupal\Core\Config\StorageInterface::exists().

Overrides StorageInterface::exists

File

drupal/core/lib/Drupal/Core/Config/DatabaseStorage.php, line 58
Definition of Drupal\Core\Config\DatabaseStorage.

Class

DatabaseStorage
Defines the Database storage controller.

Namespace

Drupal\Core\Config

Code

public function exists($name) {
  return (bool) $this->connection
    ->queryRange('SELECT 1 FROM {' . $this->connection
    ->escapeTable($this->table) . '} WHERE name = :name', 0, 1, array(
    ':name' => $name,
  ), $this->options)
    ->fetchField();
}