You are here

public function BackupDatabaseClient::setConnection in Backup Database 8

Set or update the current database connection.

Parameters

$connection \Drupal\Core\Database\Connection:

File

src/BackupDatabaseClient.php, line 136
Contains \Drupal\backup_db\BackupDatabaseClient

Class

BackupDatabaseClient
BackupDatabaseClient class.

Namespace

Drupal\backup_db

Code

public function setConnection(Connection $connection) {
  $this->connection = $connection;
}