You are here

public function ParsedMarkdown::save in Markdown 3.0.x

Caches a ParsedMarkdown object.

Return value

static

Overrides ParsedMarkdownInterface::save

File

src/ParsedMarkdown.php, line 205

Class

ParsedMarkdown

Namespace

Drupal\markdown

Code

public function save() {
  \Drupal::cache('markdown')
    ->set($this
    ->getId(), $this, $this
    ->getExpire());
  return $this;
}