You are here

public function Connection::setKey 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::setKey()

Tells this connection object what its key is.

Parameters

string $key: The key this connection is for.

File

core/lib/Drupal/Core/Database/Connection.php, line 430
Contains \Drupal\Core\Database\Connection.

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function setKey($key) {
  if (!isset($this->key)) {
    $this->key = $key;
  }
}