Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Connection.php

Connection::$key

The key representing this connection.

The key is a unique string which identifies a database connection. A connection can be a single server or a cluster of primary and replicas (use target to pick between primary and replica).

Type: string|null

File

core/lib/Drupal/Core/Database/Connection.php, line 48

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

protected $key = NULL;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal