You are here

interface ParserInterface in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x src/Parser/ParserInterface.php \Drupal\xbbcode\Parser\ParserInterface

An interface for parsers.

Hierarchy

Expanded class hierarchy of ParserInterface

All classes that implement ParserInterface

File

src/Parser/ParserInterface.php, line 10

Namespace

Drupal\xbbcode\Parser
View 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

Namesort descending Modifiers Type Description Overrides
ParserInterface::parse public function Parse a text and build an element tree. 1