public function MarkdownInterface::loadFile in Markdown 8.2
Loads a cached ParsedMarkdown object based on system file.
Parameters
string $filename: The local file system path of a markdown file to parse if the cached ParsedMarkdown object doesn't yet exist. Once parsed, its identifier will be set to the provided $id and then cached.
string $id: Optional. A unique identifier for caching the parsed markdown. If not set, one will be generated automatically based on the provided $filename.
\Drupal\Core\Language\LanguageInterface $language: Optional. The language of the markdown that is being parsed.
Return value
\Drupal\markdown\Render\ParsedMarkdownInterface A ParsedMarkdown object.
Throws
\Drupal\markdown\Exception\MarkdownFileNotExistsException
1 method overrides MarkdownInterface::loadFile()
- Markdown::loadFile in src/
Markdown.php - Loads a cached ParsedMarkdown object based on system file.
File
- src/
MarkdownInterface.php, line 48
Class
- MarkdownInterface
- Interface MarkdownInterface.
Namespace
Drupal\markdownCode
public function loadFile($filename, $id = NULL, LanguageInterface $language = NULL);