You are here

public function Url::__toString in Migrate Plus 8.2

Same name and namespace in other branches
  1. 8.5 src/Plugin/migrate/source/Url.php \Drupal\migrate_plus\Plugin\migrate\source\Url::__toString()
  2. 8 src/Plugin/migrate/source/Url.php \Drupal\migrate_plus\Plugin\migrate\source\Url::__toString()
  3. 8.3 src/Plugin/migrate/source/Url.php \Drupal\migrate_plus\Plugin\migrate\source\Url::__toString()
  4. 8.4 src/Plugin/migrate/source/Url.php \Drupal\migrate_plus\Plugin\migrate\source\Url::__toString()

Return a string representing the source URLs.

Return value

string Comma-separated list of URLs being imported.

Overrides MigrateSourceInterface::__toString

File

src/Plugin/migrate/source/Url.php, line 58

Class

Url
Source plugin for retrieving data via URLs.

Namespace

Drupal\migrate_plus\Plugin\migrate\source

Code

public function __toString() {

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