final public static Database::removeConnection($key)
Remove a connection and its corresponding connection information.
Parameters
string $key: The connection key.
Return value
bool TRUE in case of success, FALSE otherwise.
File
- core/lib/Drupal/Core/Database/Database.php, line 334
Class
- Database
- Primary front-controller for the database system.
Namespace
Drupal\Core\Database
Code
1 2 3 4 5 6 7 8 9 10 | final public static function removeConnection( $key ) { if (isset(self:: $databaseInfo [ $key ])) { self::closeConnection(NULL, $key ); unset(self:: $databaseInfo [ $key ]); return TRUE; } else { return FALSE; } } |
Please login to continue.