public function ParsedMarkdown::getId in Markdown 3.0.x
Retrieves the identifier for this object.
Note: if no identifier is currently set, a unique hash based on the contents of the parsed HTML will be used.
Return value
string The identifier for this object.
Overrides ParsedMarkdownInterface::getId
2 calls to ParsedMarkdown::getId()
- ParsedMarkdown::getLabel in src/
ParsedMarkdown.php - Retrieves the human-readable label for this object.
- ParsedMarkdown::save in src/
ParsedMarkdown.php - Caches a ParsedMarkdown object.
File
- src/
ParsedMarkdown.php, line 147
Class
Namespace
Drupal\markdownCode
public function getId() {
if ($this->id === NULL) {
$this->id = Crypt::hashBase64($this
->getHtml());
}
return $this->id;
}