Mercurial > hg > cmmr2012-drupal-site
view modules/contrib/migrate_plus/src/DataFetcherPluginInterface.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
line wrap: on
line source
<?php namespace Drupal\migrate_plus; /** * Defines an interface for data fetchers. * * @see \Drupal\migrate_plus\Annotation\DataFetcher * @see \Drupal\migrate_plus\DataFetchPluginBase * @see \Drupal\migrate_plus\DataFetcherPluginManager * @see plugin_api */ interface DataFetcherPluginInterface { /** * Set the client headers. * * @param array $headers * An array of the headers to set on the HTTP request. */ public function setRequestHeaders(array $headers); /** * Get the currently set request headers. */ public function getRequestHeaders(); /** * Return content. * * @param string $url * URL to retrieve from. * * @return string * Content at the given url. */ public function getResponseContent($url); /** * Return Http Response object for a given url. * * @param string $url * URL to retrieve from. * * @return \Psr\Http\Message\ResponseInterface * The HTTP response message. */ public function getResponse($url); }