W3cubDocs

/Drupal 8

public function Connection::getTarget

public Connection::getTarget()

Returns the target this connection is associated with.

Return value

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

File

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

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function getTarget() {
  return $this->target;
}

© 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::getTarget/8.1.x