You are here

public function MigrateSourceSQL::__toString in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 plugins/sources/sql.inc \MigrateSourceSQL::__toString()

Return a string representing the source query.

Return value

string

File

plugins/sources/sql.inc, line 191
Define a MigrateSource for importing from Drupal connections.

Class

MigrateSourceSQL
Implementation of MigrateSource, to handle imports from Drupal connections.

Code

public function __toString() {
  $query = clone $this->query;
  $query = $query
    ->extend('MigrateConnectionQuery');
  return $query
    ->getString();
}