You are here

public function Connection::getKey in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 442
Contains \Drupal\Core\Database\Connection.

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

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