You are here

public function Http::getResponseContent in Migrate Plus 8.5

Same name and namespace in other branches
  1. 8 src/Plugin/migrate_plus/data_fetcher/Http.php \Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher\Http::getResponseContent()
  2. 8.2 src/Plugin/migrate_plus/data_fetcher/Http.php \Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher\Http::getResponseContent()
  3. 8.3 src/Plugin/migrate_plus/data_fetcher/Http.php \Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher\Http::getResponseContent()
  4. 8.4 src/Plugin/migrate_plus/data_fetcher/Http.php \Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher\Http::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/Http.php, line 119

Class

Http
Retrieve data over an HTTP connection for migration.

Namespace

Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher

Code

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