public function Markdown::save in Markdown 8.2
Saves a parsed markdown object.
Parameters
string $id: The identifier to use when saving the parsed markdown object.
\Drupal\markdown\Render\ParsedMarkdownInterface $parsed: The parsed markdown object to save.
Return value
\Drupal\markdown\Render\ParsedMarkdownInterface The passed parsed markdown.
Overrides MarkdownInterface::save
2 calls to Markdown::save()
- Markdown::loadFile in src/
Markdown.php - Loads a cached ParsedMarkdown object based on system file.
- Markdown::loadUrl in src/
Markdown.php - Loads a cached ParsedMarkdown object based on a URL.
File
- src/
Markdown.php, line 183
Class
- Markdown
- Markdown service.
Namespace
Drupal\markdownCode
public function save($id, ParsedMarkdownInterface $parsed) {
$this->cache
->set($id, $parsed, $parsed
->getExpire(), $parsed
->getCacheTags());
return $parsed;
}