interface FetcherInterface in Feeds 8.3
Interface for Feeds fetchers.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Component\Plugin\DependentPluginInterface
- interface \Drupal\feeds\Plugin\Type\FeedsPluginInterface
- interface \Drupal\feeds\Plugin\Type\Fetcher\FetcherInterface
- interface \Drupal\feeds\Plugin\Type\FeedsPluginInterface
Expanded class hierarchy of FetcherInterface
All classes that implement FetcherInterface
5 files declare their use of FetcherInterface
- DirectoryFetcher.php in src/
Feeds/ Fetcher/ DirectoryFetcher.php - DirectoryFetcherFeedFormTest.php in tests/
src/ Unit/ Feeds/ Fetcher/ Form/ DirectoryFetcherFeedFormTest.php - FeedTest.php in tests/
src/ Kernel/ Entity/ FeedTest.php - HttpFetcher.php in src/
Feeds/ Fetcher/ HttpFetcher.php - UploadFetcher.php in src/
Feeds/ Fetcher/ UploadFetcher.php
File
- src/
Plugin/ Type/ Fetcher/ FetcherInterface.php, line 12
Namespace
Drupal\feeds\Plugin\Type\FetcherView source
interface FetcherInterface extends FeedsPluginInterface {
/**
* Fetch content from a feed and return it.
*
* @param \Drupal\feeds\FeedInterface $feed
* The feed to fetch results for.
* @param \Drupal\feeds\StateInterface $state
* The state object.
*
* @return \Drupal\feeds\Result\FetcherResultInterface
* A fetcher result object.
*/
public function fetch(FeedInterface $feed, StateInterface $state);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. | 19 |
FeedsPluginInterface:: |
public | function | Returns default feed configuration. | 1 |
FeedsPluginInterface:: |
public | function | Returns the type of plugin. | 1 |
FetcherInterface:: |
public | function | Fetch content from a feed and return it. | 3 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |