public function DataFetcherPluginInterface::setRequestHeaders in Migrate Plus 8.2
Same name and namespace in other branches
- 8.5 src/DataFetcherPluginInterface.php \Drupal\migrate_plus\DataFetcherPluginInterface::setRequestHeaders()
- 8 src/DataFetcherPluginInterface.php \Drupal\migrate_plus\DataFetcherPluginInterface::setRequestHeaders()
- 8.3 src/DataFetcherPluginInterface.php \Drupal\migrate_plus\DataFetcherPluginInterface::setRequestHeaders()
- 8.4 src/DataFetcherPluginInterface.php \Drupal\migrate_plus\DataFetcherPluginInterface::setRequestHeaders()
Set the client headers.
Parameters
$headers: An array of the headers to set on the HTTP request.
2 methods override DataFetcherPluginInterface::setRequestHeaders()
- File::setRequestHeaders in src/
Plugin/ migrate_plus/ data_fetcher/ File.php - Set the client headers.
- Http::setRequestHeaders in src/
Plugin/ migrate_plus/ data_fetcher/ Http.php - Set the client headers.
File
- src/
DataFetcherPluginInterface.php, line 21
Class
- DataFetcherPluginInterface
- Defines an interface for data fetchers.
Namespace
Drupal\migrate_plusCode
public function setRequestHeaders(array $headers);