public function TestProcessor::postProcess

Implements \Drupal\aggregator\Plugin\ProcessorInterface::postProcess().

Overrides ProcessorInterface::postProcess

File

drupal/core/modules/aggregator/tests/modules/aggregator_test/lib/Drupal/aggregator_test/Plugin/aggregator/processor/TestProcessor.php, line 84
Contains \Drupal\aggregator_test\Plugin\aggregator\processor\TestProcessor.

Class

TestProcessor
Defines a default processor implementation.

Namespace

Drupal\aggregator_test\Plugin\aggregator\processor

Code

public function postProcess(Feed $feed) {

  // Double the refresh rate.
  $feed->refresh->value *= 2;
  $feed
    ->save();
}