public function Connection::setKey
public Connection::setKey($key)
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 425
Class
- Connection
- Base Database API class.
Namespace
Drupal\Core\DatabaseCode
public function setKey($key) { if (!isset($this->key)) { $this->key = $key; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Connection.php/function/Connection::setKey/8.1.x