You are here

public function MarkdownParserManagerInterface::getFilter in Markdown 3.0.x

Retrieves the a filter plugin instance based on passed configuration.

Parameters

string $parser: The plugin identifier of the parser that should match against.

array $configuration: An array of configuration relevant to the plugin instance, passed by reference.

Return value

\Drupal\markdown\Plugin\Filter\MarkdownFilterInterface|null A MarkdownFilter instance or NULL if it could not be determined.

1 method overrides MarkdownParserManagerInterface::getFilter()
MarkdownParserManager::getFilter in src/MarkdownParserManager.php
Retrieves the a filter plugin instance based on passed configuration.

File

src/MarkdownParserManagerInterface.php, line 27

Class

MarkdownParserManagerInterface
@method \Drupal\markdown\Plugin\Markdown\MarkdownParserInterface[] all($includeBroken = FALSE) : array @method \Drupal\markdown\Plugin\Markdown\MarkdownParserInterface[] getInstalled(array $configuration = []) : array @method…

Namespace

Drupal\markdown

Code

public function getFilter($parser = 'commonmark', array &$configuration = []);