You are here

interface FetcherInterface in Feeds 8.3

Interface for Feeds fetchers.

Hierarchy

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\Fetcher
View 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

Namesort descending Modifiers Type Description Overrides
ConfigurableInterface::defaultConfiguration public function Gets default configuration for this plugin. 11
ConfigurableInterface::getConfiguration public function Gets this plugin's configuration. 12
ConfigurableInterface::setConfiguration public function Sets the configuration for this plugin instance. 12
DependentPluginInterface::calculateDependencies public function Calculates dependencies for the configured plugin. 19
FeedsPluginInterface::defaultFeedConfiguration public function Returns default feed configuration. 1
FeedsPluginInterface::pluginType public function Returns the type of plugin. 1
FetcherInterface::fetch public function Fetch content from a feed and return it. 3
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2