function ProcessorInterface::process

Same name in other branches
  1. 9 core/modules/aggregator/src/Plugin/ProcessorInterface.php \Drupal\aggregator\Plugin\ProcessorInterface::process()

Processes feed data.

Parameters

\Drupal\aggregator\FeedInterface $feed: A feed object representing the resource to be processed. $feed->items contains an array of feed items downloaded and parsed at the parsing stage. See \Drupal\aggregator\Plugin\FetcherInterface::parse() for the basic format of a single item in the $feed->items array. For the exact format refer to the particular parser in use.

2 methods override ProcessorInterface::process()
DefaultProcessor::process in core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php
Processes feed data.
TestProcessor::process in core/modules/aggregator/tests/modules/aggregator_test/src/Plugin/aggregator/processor/TestProcessor.php
Processes feed data.

File

core/modules/aggregator/src/Plugin/ProcessorInterface.php, line 33

Class

ProcessorInterface
Defines an interface for aggregator processor implementations.

Namespace

Drupal\aggregator\Plugin

Code

public function process(FeedInterface $feed);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.