TestParser.php

Same filename in other branches
  1. 9 core/modules/aggregator/tests/modules/aggregator_test/src/Plugin/aggregator/parser/TestParser.php

Namespace

Drupal\aggregator_test\Plugin\aggregator\parser

File

core/modules/aggregator/tests/modules/aggregator_test/src/Plugin/aggregator/parser/TestParser.php

View source
<?php

namespace Drupal\aggregator_test\Plugin\aggregator\parser;

use Drupal\aggregator\Plugin\ParserInterface;
use Drupal\aggregator\FeedInterface;
use Drupal\aggregator\Plugin\aggregator\parser\DefaultParser;

/**
 * Defines a Test parser implementation.
 *
 * Parses RSS, Atom and RDF feeds.
 *
 * @AggregatorParser(
 *   id = "aggregator_test_parser",
 *   title = @Translation("Test parser"),
 *   description = @Translation("Dummy parser for testing purposes.")
 * )
 */
class TestParser extends DefaultParser implements ParserInterface {
    
    /**
     * Implements \Drupal\aggregator\Plugin\ParserInterface::parse().
     *
     * @todo Actually test this.
     */
    public function parse(FeedInterface $feed) {
        return parent::parse($feed);
    }

}

Classes

Title Deprecated Summary
TestParser Defines a Test parser implementation.

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