function StubConnection::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.

Overrides Connection::getTarget

File

core/tests/Drupal/Tests/Core/Database/Stub/StubConnection.php, line 68

Class

StubConnection
A stub of the abstract Connection class for testing purposes.

Namespace

Drupal\Tests\Core\Database\Stub

Code

public function getTarget() {
  return 'default';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.