You are here

public function Http::getResponseContent in Migrate Plus 8

Same name and namespace in other branches
  1. 8.5 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

$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 88
Contains Drupal\migrate_plus\Plugin\migrate_plus\data_fetcher\Http.

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();
}