class TestParser in Zircon Profile 8
Same name in this branch
- 8 vendor/twig/twig/test/Twig/Tests/ParserTest.php \TestParser
- 8 core/modules/aggregator/tests/modules/aggregator_test/src/Plugin/aggregator/parser/TestParser.php \Drupal\aggregator_test\Plugin\aggregator\parser\TestParser
Same name and namespace in other branches
- 8.0 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 ParserInterface
- class \Drupal\aggregator_test\Plugin\aggregator\parser\TestParser implements ParserInterface
Expanded class hierarchy of TestParser
File
- core/
modules/ aggregator/ tests/ modules/ aggregator_test/ src/ Plugin/ aggregator/ parser/ TestParser.php, line 25 - Contains \Drupal\aggregator_test\Plugin\aggregator\parser\TestParser.
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestParser:: |
public | function |
Implements \Drupal\aggregator\Plugin\ParserInterface::parse(). Overrides DefaultParser:: |