public function iconTag($icon = null, $options = []) {
		$icon = mb_strtolower((string)$icon);
		$dataStr = serialize(compact('icon', 'options')) . '_' . $this->_currUIlang;
		$cachePath = 'iconTag.' . md5($dataStr);
		$cached = Cache::read($cachePath, CAKE_THEME_CACHE_KEY_HELPERS);
		if (!empty($cached)) {
			return $cached;
		}

		$result = '';
		if (empty($options)) {
			$options = [];
		} elseif (!is_array($options)) {
			$options = [$options];
		}

		$iconClass = $this->_getClassForElement($icon);
		if (empty($iconClass)) {
			return $result;
		}

		$options['class'] = $iconClass;
		$result = $this->Html->tag('span', '', $options);
		Cache::write($cachePath, $result, CAKE_THEME_CACHE_KEY_HELPERS);

		return $result;
	}
public function iconTag($icon = null, $options = []) {
		$icon = mb_strtolower((string)$icon);
		$dataStr = serialize(compact('icon', 'options')) . '_' . $this->_currUIlang;
		$cachePath = 'iconTag.' . md5($dataStr);
		$cached = Cache::read($cachePath, CAKE_THEME_CACHE_KEY_HELPERS);
		if (!empty($cached)) {
			return $cached;
		}

		$result = '';
		if (empty($options)) {
			$options = [];
		} elseif (!is_array($options)) {
			$options = [$options];
		}

		$iconClass = $this->_getClassForElement($icon);
		if (empty($iconClass)) {
			return $result;
		}

		$options['class'] = $iconClass;
		$result = $this->Html->tag('span', '', $options);
		Cache::write($cachePath, $result, CAKE_THEME_CACHE_KEY_HELPERS);

		return $result;
	}
public function iconTag ( $ icon = null , $ options = [ ] ) { $ icon = mb_strtolower ( ( string ) $ icon ) ; $ dataStr = serialize ( compact ( 'icon' , 'options' ) ) . '_' . $ this -> _currUIlang ; $ cachePath = 'iconTag.' . md5 ( $ dataStr ) ; $ cached = Cache :: read ( $ cachePath , CAKE_THEME_CACHE_KEY_HELPERS ) ; if ( ! empty ( $ cached ) ) { return $ cached ; } $ result = '' ; if ( empty ( $ options ) ) { $ options = [ ] ; } elseif ( ! is_array ( $ options ) ) { $ options = [ $ options ] ; } $ iconClass = $ this -> _getClassForElement ( $ icon ) ; if ( empty ( $ iconClass ) ) { return $ result ; } $ options [ 'class' ] = $ iconClass ; $ result = $ this -> Html -> tag ( 'span' , '' , $ options ) ; Cache :: write ( $ cachePath , $ result , CAKE_THEME_CACHE_KEY_HELPERS ) ; return $ result ; }
Return HTML element of icon

@param string $icon class of icon
@param array|string $options HTML options for icon element
@return string HTML element of icon
@link http://fontawesome.io
Return HTML element of icon