function StubConnection::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.
Overrides Connection::getKey
File
-
core/
tests/ Drupal/ Tests/ Core/ Database/ Stub/ StubConnection.php, line 61
Class
- StubConnection
- A stub of the abstract Connection class for testing purposes.
Namespace
Drupal\Tests\Core\Database\StubCode
public function getKey() {
return 'default';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.