You are here

public function MigrateSourceJSON::__toString in Migrate 7.2

Return a string representing the source query.

Return value

string

File

plugins/sources/json.inc, line 497
Support for migration from JSON sources.

Class

MigrateSourceJSON
Implementation of MigrateSource, to handle imports from stand-alone JSON files.

Code

public function __toString() {

  // Clump the urls into a string
  // This could cause a problem when using a lot of urls, may need to hash
  $urls = implode(', ', $this->sourceUrls);
  return 'urls = ' . $urls;
}