interface DataFetcherPluginInterface in Migrate Plus 8
Same name and namespace in other branches
- 8.5 src/DataFetcherPluginInterface.php \Drupal\migrate_plus\DataFetcherPluginInterface
- 8.2 src/DataFetcherPluginInterface.php \Drupal\migrate_plus\DataFetcherPluginInterface
- 8.3 src/DataFetcherPluginInterface.php \Drupal\migrate_plus\DataFetcherPluginInterface
- 8.4 src/DataFetcherPluginInterface.php \Drupal\migrate_plus\DataFetcherPluginInterface
Defines an interface for data fetchers.
Hierarchy
- interface \Drupal\migrate_plus\DataFetcherPluginInterface
Expanded class hierarchy of DataFetcherPluginInterface
All classes that implement DataFetcherPluginInterface
See also
\Drupal\migrate_plus\Annotation\DataFetcher
\Drupal\migrate_plus\DataFetchPluginBase
\Drupal\migrate_plus\DataFetcherPluginManager
File
- src/
DataFetcherPluginInterface.php, line 18 - Contains \Drupal\migrate_plus\DataFetcherPluginInterface.
Namespace
Drupal\migrate_plusView source
interface DataFetcherPluginInterface {
/**
* Set the client headers.
*
* @param $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 $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 $url
* URL to retrieve from.
*
* @return \Psr\Http\Message\ResponseInterface
*/
public function getResponse($url);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DataFetcherPluginInterface:: |
public | function | Get the currently set request headers. | 1 |
DataFetcherPluginInterface:: |
public | function | Return Http Response object for a given url. | 1 |
DataFetcherPluginInterface:: |
public | function | Return content. | 1 |
DataFetcherPluginInterface:: |
public | function | Set the client headers. | 1 |