You are here

public function IconSetBase::setIcon in Icon API 8

Set icon.

Parameters

string $value: Custom Icon value.

string $key: Custom Icon key.

Overrides IconSetInterface::setIcon

1 call to IconSetBase::setIcon()
CoreSet::process in src/Plugin/Icon/CoreSet.php
Processes a IconSet.

File

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

Class

IconSetBase
Class IconSetBase

Namespace

Drupal\icon\Plugin\Icon

Code

public function setIcon($value, $key = 'icon') {
  $this->icons[$key] = $value;
}