You are here

public function ParsedMarkdown::getLabel in Markdown 8.2

Retrieves the human-readable label for this object.

Note: if no label is currently set, the identifier for the object is returned instead.

Return value

string The label for this object.

Overrides ParsedMarkdownInterface::getLabel

File

src/Render/ParsedMarkdown.php, line 137

Class

ParsedMarkdown
The end result of parsing markdown into HTML.

Namespace

Drupal\markdown\Render

Code

public function getLabel() {
  return $this->label ?: $this
    ->getId();
}