You are here

public function ParsedMarkdown::setExpire in Markdown 3.0.x

Sets the object's expiration timestamp.

Parameters

int|string $expire: A UNIX timestamp or a string indicating a relative time in the future of when this object is to expire, e.g. "1+ day".

Return value

static

Overrides ParsedMarkdownInterface::setExpire

File

src/ParsedMarkdown.php, line 241

Class

ParsedMarkdown

Namespace

Drupal\markdown

Code

public function setExpire($expire = ParsedMarkdownInterface::PERMANENT) {
  $this->expire = $expire;
  return $this;
}