You are here

public function ParsedMarkdown::getLabel in Markdown 3.0.x

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/ParsedMarkdown.php, line 157

Class

ParsedMarkdown

Namespace

Drupal\markdown

Code

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