class TestParser
Same name in other branches
- 8.9.x 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
- class \Drupal\aggregator\Plugin\aggregator\parser\DefaultParser implements \Drupal\aggregator\Plugin\ParserInterface uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\Messenger\MessengerTrait
- class \Drupal\aggregator_test\Plugin\aggregator\parser\TestParser extends \Drupal\aggregator\Plugin\aggregator\parser\DefaultParser implements \Drupal\aggregator\Plugin\ParserInterface
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\parserView 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
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
MessengerTrait::$messenger | protected | property | The messenger. | 17 | |
MessengerTrait::messenger | public | function | Gets the messenger. | 17 | |
MessengerTrait::setMessenger | public | function | Sets the messenger. | ||
StringTranslationTrait::$stringTranslation | protected | property | The string translation service. | 3 | |
StringTranslationTrait::formatPlural | protected | function | Formats a string containing a count of items. | ||
StringTranslationTrait::getNumberOfPlurals | protected | function | Returns the number of plurals supported by a given language. | ||
StringTranslationTrait::getStringTranslation | protected | function | Gets the string translation service. | ||
StringTranslationTrait::setStringTranslation | public | function | Sets the string translation service to use. | 2 | |
StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. | ||
TestParser::parse | public | function | Implements \Drupal\aggregator\Plugin\ParserInterface::parse(). | Overrides DefaultParser::parse |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.