You are here

class TestParser in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/aggregator/tests/modules/aggregator_test/src/Plugin/aggregator/parser/TestParser.php \Drupal\aggregator_test\Plugin\aggregator\parser\TestParser

Defines a Test parser implementation.

Parses RSS, Atom and RDF feeds.

Plugin annotation


@AggregatorParser(
  id = "aggregator_test_parser",
  title = @Translation("Test parser"),
  description = @Translation("Dummy parser for testing purposes.")
)

Hierarchy

Expanded class hierarchy of TestParser

File

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

Namespace

Drupal\aggregator_test\Plugin\aggregator\parser
View source
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);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MessengerTrait::$messenger protected property The messenger. 27
MessengerTrait::messenger public function Gets the messenger. 27
MessengerTrait::setMessenger public function Sets the messenger.
TestParser::parse public function Implements \Drupal\aggregator\Plugin\ParserInterface::parse(). Overrides DefaultParser::parse