You are here

public function Connection::getKey in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::getKey()

Returns the key this connection is associated with.

Return value

string|null The key of this connection, or NULL if no key is set.

File

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

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function getKey() {
  return $this->key;
}