You are here

public function MarkdownInterface::loadUrl in Markdown 8.2

Same name and namespace in other branches
  1. 3.0.x src/MarkdownInterface.php \Drupal\markdown\MarkdownInterface::loadUrl()

Loads a cached ParsedMarkdown object based on a URL.

Parameters

string $url: The external URL 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 $url.

\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\MarkdownUrlNotExistsException

1 method overrides MarkdownInterface::loadUrl()
Markdown::loadUrl in src/Markdown.php
Loads a cached ParsedMarkdown object based on a URL.

File

src/MarkdownInterface.php, line 92

Class

MarkdownInterface
Interface MarkdownInterface.

Namespace

Drupal\markdown

Code

public function loadUrl($url, $id = NULL, LanguageInterface $language = NULL);