function SqlBase::__toString
Same name in other branches
- 9 core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::__toString()
- 8.9.x core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::__toString()
- 11.x core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::__toString()
Prints the query string when the object is used as a string.
Return value
string The query string.
Overrides MigrateSourceInterface::__toString
File
-
core/
modules/ migrate/ src/ Plugin/ migrate/ source/ SqlBase.php, line 135
Class
- SqlBase
- Sources whose data may be fetched via a database connection.
Namespace
Drupal\migrate\Plugin\migrate\sourceCode
public function __toString() {
return (string) $this->query();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.