ParserInterface.php in Extensible BBCode 4.0.x
Same filename and directory in other branches
Namespace
Drupal\xbbcode\ParserFile
src/Parser/ParserInterface.phpView source
<?php
namespace Drupal\xbbcode\Parser;
use Drupal\xbbcode\Parser\Tree\NodeElementInterface;
/**
* An interface for parsers.
*/
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(string $text) : NodeElementInterface;
}
Interfaces
Name![]() |
Description |
---|---|
ParserInterface | An interface for parsers. |