You are here

public function IconSetBase::getLabel in Icon API 8

Retrieves the human readable label for the plugin.

Return value

string The human readable label.

Overrides IconSetInterface::getLabel

File

src/Plugin/Icon/IconSetBase.php, line 40

Class

IconSetBase
Class IconSetBase

Namespace

Drupal\icon\Plugin\Icon

Code

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