You are here

public function File::getResponseContent in Migrate Plus 8.4

Same name and namespace in other branches
  1. 8.5 src/Plugin/migrate_plus/data_fetcher/File.php \Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher\File::getResponseContent()
  2. 8.2 src/Plugin/migrate_plus/data_fetcher/File.php \Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher\File::getResponseContent()
  3. 8.3 src/Plugin/migrate_plus/data_fetcher/File.php \Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher\File::getResponseContent()

Return content.

Parameters

string $url: URL to retrieve from.

Return value

string Content at the given url.

Overrides DataFetcherPluginInterface::getResponseContent

File

src/Plugin/migrate_plus/data_fetcher/File.php, line 47

Class

File
Retrieve data from a local path or general URL for migration.

Namespace

Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher

Code

public function getResponseContent($url) {
  $response = $this
    ->getResponse($url);
  return $response;
}