You are here

public function ParserAwareInterface::setParser in Markdown 8.2

Sets the Filter plugin.

Parameters

\Drupal\markdown\Plugin\Markdown\ParserInterface $parser: A Markdown Parser instance.

Return value

static

1 method overrides ParserAwareInterface::setParser()
FilterMarkdown::setParser in src/Plugin/Filter/FilterMarkdown.php
Sets the Filter plugin.

File

src/Util/ParserAwareInterface.php, line 28

Class

ParserAwareInterface
Interface for allowing an object to be aware of a Markdown Parser instance.

Namespace

Drupal\markdown\Util

Code

public function setParser(ParserInterface $parser = NULL);