Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SqlBase.php

function 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\source

Code

public function __toString() {
    return (string) $this->query();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal