You are here

public function MiconIcon::getHex in Micon 8

Same name and namespace in other branches
  1. 2.x src/MiconIcon.php \Drupal\micon\MiconIcon::getHex()

Get the HEX used within sudo-elements of CSS.

Return value

string The CSS HEX value.

Overrides MiconIconInterface::getHex

File

src/MiconIcon.php, line 96

Class

MiconIcon
Defines the Micon icon.

Namespace

Drupal\micon

Code

public function getHex() {
  return $this->type == 'font' ? '\\' . dechex($this->data['properties']['code']) : '';
}