You are here

public function IconSetBase::getIcon in Icon API 8

Get icon.

Return value

mixed Icon or FALSE;

Overrides IconSetInterface::getIcon

File

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

Class

IconSetBase
Class IconSetBase

Namespace

Drupal\icon\Plugin\Icon

Code

public function getIcon($key = 'icon') {
  if (isset($this->icons[$key])) {
    return $this->icons[$key];
  }
  return FALSE;
}