public function IconRendererBase::getLabel in Icon API 8
Retrieves the human readable label for the plugin.
Return value
string The human readable label.
Overrides IconRendererInterface::getLabel
File
- src/
Plugin/ Icon/ IconRendererBase.php, line 37
Class
- IconRendererBase
- Class IconRendererBase
Namespace
Drupal\icon\Plugin\IconCode
public function getLabel() {
return isset($this->pluginDefinition['label']) ? $this->pluginDefinition['label'] : $this
->getPluginId();
}