public function AnnotatedPluginBase::getLabel in Markdown 8.2
Displays the human-readable label of the plugin.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The label.
Overrides AnnotatedPluginInterface::getLabel
1 method overrides AnnotatedPluginBase::getLabel()
- InstallablePluginBase::getLabel in src/
Plugin/ Markdown/ InstallablePluginBase.php - Displays the human-readable label of the plugin.
File
- src/
Plugin/ Markdown/ AnnotatedPluginBase.php, line 90
Class
- AnnotatedPluginBase
- Base class for annotated plugins.
Namespace
Drupal\markdown\Plugin\MarkdownCode
public function getLabel() {
return $this->pluginDefinition->label ?: $this->pluginDefinition
->getId();
}