comparison modules/contrib/migrate_plus/src/DataFetcherPluginInterface.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
13 interface DataFetcherPluginInterface { 13 interface DataFetcherPluginInterface {
14 14
15 /** 15 /**
16 * Set the client headers. 16 * Set the client headers.
17 * 17 *
18 * @param $headers 18 * @param array $headers
19 * An array of the headers to set on the HTTP request. 19 * An array of the headers to set on the HTTP request.
20 */ 20 */
21 public function setRequestHeaders(array $headers); 21 public function setRequestHeaders(array $headers);
22 22
23 /** 23 /**
26 public function getRequestHeaders(); 26 public function getRequestHeaders();
27 27
28 /** 28 /**
29 * Return content. 29 * Return content.
30 * 30 *
31 * @param $url 31 * @param string $url
32 * URL to retrieve from. 32 * URL to retrieve from.
33 * 33 *
34 * @return string 34 * @return string
35 * Content at the given url. 35 * Content at the given url.
36 */ 36 */
37 public function getResponseContent($url); 37 public function getResponseContent($url);
38 38
39 /** 39 /**
40 * Return Http Response object for a given url. 40 * Return Http Response object for a given url.
41 * 41 *
42 * @param $url 42 * @param string $url
43 * URL to retrieve from. 43 * URL to retrieve from.
44 * 44 *
45 * @return \Psr\Http\Message\ResponseInterface 45 * @return \Psr\Http\Message\ResponseInterface
46 * The HTTP response message.
46 */ 47 */
47 public function getResponse($url); 48 public function getResponse($url);
48 49
49 } 50 }