You are here

public function ParsedMarkdownInterface::getExpire in Markdown 8.2

Retrieves the UNIX timestamp for when this object should expire.

Note: this method should handle the use case of a string being set to indicate a relative future time.

Parameters

int $from_time: A UNIX timestamp used to expire from. This will only be used when the expire value has been set to a relative time in the future, e.g. day, week, month, etc. If not set, this current request time will be used.

Return value

int The UNIX timestamp.

1 method overrides ParsedMarkdownInterface::getExpire()
ParsedMarkdown::getExpire in src/Render/ParsedMarkdown.php
Retrieves the UNIX timestamp for when this object should expire.

File

src/Render/ParsedMarkdownInterface.php, line 60

Class

ParsedMarkdownInterface
Interface parsed markdown instances.

Namespace

Drupal\markdown\Render

Code

public function getExpire($from_time = NULL);