interface ParserInterface in Extensible BBCode 8.3
Same name and namespace in other branches
- 4.0.x src/Parser/ParserInterface.php \Drupal\xbbcode\Parser\ParserInterface
An interface for parsers.
Hierarchy
- interface \Drupal\xbbcode\Parser\ParserInterface
Expanded class hierarchy of ParserInterface
All classes that implement ParserInterface
File
- src/
Parser/ ParserInterface.php, line 10
Namespace
Drupal\xbbcode\ParserView source
interface ParserInterface {
/**
* Parse a text and build an element tree.
*
* @param string $text
* The source text.
*
* @return \Drupal\xbbcode\Parser\Tree\NodeElementInterface
* The element representing the root of the tree.
*/
public function parse($text) : NodeElementInterface;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ParserInterface:: |
public | function | Parse a text and build an element tree. | 1 |