You are here

public function IconProviderBase::getLabel in Icon API 8

Retrieves the human readable label for the plugin.

Return value

string The human readable label.

Overrides IconProviderInterface::getLabel

File

src/Plugin/Icon/IconProviderBase.php, line 37

Class

IconProviderBase
Class IconProviderBase

Namespace

Drupal\icon\Plugin\Icon

Code

public function getLabel() {
  return isset($this->pluginDefinition['label']) ? $this->pluginDefinition['label'] : $this
    ->getPluginId();
}