You are here

public function ParserInterface::parse in Extensible BBCode 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Parser/ParserInterface.php \Drupal\xbbcode\Parser\ParserInterface::parse()

Parse a text and build an element tree.

Parameters

string $text: The source text.

Return value

\Drupal\xbbcode\Parser\Tree\NodeElementInterface The element representing the root of the tree.

1 method overrides ParserInterface::parse()
XBBCodeParser::parse in src/Parser/XBBCodeParser.php
Parse a text and build an element tree.

File

src/Parser/ParserInterface.php, line 21

Class

ParserInterface
An interface for parsers.

Namespace

Drupal\xbbcode\Parser

Code

public function parse(string $text) : NodeElementInterface;