public function MigrateConnectionQuery::__construct in Migrate 7.2
Overrides SelectQueryExtender::__construct
File
- plugins/
sources/ sql.inc, line 472 - Define a MigrateSource for importing from Drupal connections.
Class
- MigrateConnectionQuery
- Query extender for retrieving the connection used on the query.
Code
public function __construct(SelectQueryInterface $query, DatabaseConnection $connection) {
parent::__construct($query, $connection);
// Add the connection as metadata if anything else wants to access it.
$query
->addMetaData('connection', $connection);
}