public function ParsedMarkdown::setExpire in Markdown 8.2
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/
Render/ ParsedMarkdown.php, line 203
Class
- ParsedMarkdown
- The end result of parsing markdown into HTML.
Namespace
Drupal\markdown\RenderCode
public function setExpire($expire = ParsedMarkdownInterface::PERMANENT) {
$this->expire = $expire;
return $this;
}