You are here

interface FeedsExecutableInterface in Feeds 8.3

Defines an interface for importing feeds.

Hierarchy

Expanded class hierarchy of FeedsExecutableInterface

All classes that implement FeedsExecutableInterface

2 files declare their use of FeedsExecutableInterface
FeedImportHandlerTest.php in tests/src/Unit/FeedImportHandlerTest.php
FeedRefreshTest.php in tests/src/Unit/Plugin/QueueWorker/FeedRefreshTest.php

File

src/FeedsExecutableInterface.php, line 8

Namespace

Drupal\feeds
View source
interface FeedsExecutableInterface {

  /**
   * Parameter passed when starting a new import.
   *
   * @var string
   */
  const BEGIN = 'begin';

  /**
   * Parameter passed when fetching.
   *
   * @var string
   */
  const FETCH = 'fetch';

  /**
   * Parameter passed when parsing.
   *
   * @var string
   */
  const PARSE = 'parse';

  /**
   * Parameter passed when processing.
   *
   * @var string
   */
  const PROCESS = 'process';

  /**
   * Parameter passed when cleaning.
   *
   * @var string
   */
  const CLEAN = 'clean';

  /**
   * Parameter passed when finishing.
   *
   * @var string
   */
  const FINISH = 'finish';

  /**
   * Processes a stage of an import.
   *
   * @param \Drupal\feeds\FeedInterface $feed
   *   The feed to batch.
   * @param string $stage
   *   The stage which the import is at.
   * @param array $params
   *   Parameters relevant to the current stage.
   */
  public function processItem(FeedInterface $feed, $stage, array $params = []);

}

Members

Namesort descending Modifiers Type Description Overrides
FeedsExecutableInterface::BEGIN constant Parameter passed when starting a new import.
FeedsExecutableInterface::CLEAN constant Parameter passed when cleaning.
FeedsExecutableInterface::FETCH constant Parameter passed when fetching.
FeedsExecutableInterface::FINISH constant Parameter passed when finishing.
FeedsExecutableInterface::PARSE constant Parameter passed when parsing.
FeedsExecutableInterface::PROCESS constant Parameter passed when processing.
FeedsExecutableInterface::processItem public function Processes a stage of an import. 1