public function MarkdownParserManagerInterface::getParser in Markdown 3.0.x
Retrieves a parser based on a filter and its settings.
Parameters
string|\Drupal\filter\Plugin\FilterInterface|\Drupal\filter\FilterFormatInterface $filter: Optional A specific filter plugin to use, a string representing a filter format or a FilterFormatInterface object containing a "markdown" filter.
\Drupal\Core\Session\AccountInterface $account: Optional. An account used to retrieve filters available filters if one wasn't already specified.
Return value
\Drupal\markdown\Plugin\Markdown\MarkdownParserInterface A MarkdownParser plugin.
1 method overrides MarkdownParserManagerInterface::getParser()
- MarkdownParserManager::getParser in src/
MarkdownParserManager.php - Retrieves a parser based on a filter and its settings.
File
- src/
MarkdownParserManagerInterface.php, line 42
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\markdownCode
public function getParser($filter = NULL, AccountInterface $account = NULL) : MarkdownParserInterface;