You are here

public function MarkdownParserInterface::load in Markdown 3.0.x

Loads a cached ParsedMarkdown object.

Parameters

string $id: A unique identifier that will be used to cache the parsed markdown.

string $markdown: Optional. The fallback markdown to parse if the cached ParsedMarkdown object doesn't yet exist. If provided, it will be parsed and its identifier set to the provided $id and then cached.

\Drupal\Core\Language\LanguageInterface $language: Optional. The language of the markdown that is being parsed.

Return value

\Drupal\markdown\ParsedMarkdownInterface|null A ParsedMarkdown object or NULL if it doesn't exist and $markdown was not provided as a fallback.

1 method overrides MarkdownParserInterface::load()
BaseParser::load in src/Plugin/Markdown/BaseParser.php
Loads a cached ParsedMarkdown object.

File

src/Plugin/Markdown/MarkdownParserInterface.php, line 91

Class

MarkdownParserInterface
Interface MarkdownInterface.

Namespace

Drupal\markdown\Plugin\Markdown

Code

public function load($id, $markdown = NULL, LanguageInterface $language = NULL);