public function icon($icon)
    {
        $icon = func_num_args() > 1 ? func_get_args() : $icon;

        return $this->formatTemplate('tag', [
            'attrs' => $this->templater()->formatAttributes(['class' => $this->buildIconClasses($icon)]),
            'content' => ' ',
            'tag' => 'i',
        ]);
    }
public function icon($icon)
    {
        $icon = func_num_args() > 1 ? func_get_args() : $icon;

        return $this->formatTemplate('tag', [
            'attrs' => $this->templater()->formatAttributes(['class' => $this->buildIconClasses($icon)]),
            'content' => ' ',
            'tag' => 'i',
        ]);
    }
public function icon ( $ icon ) { $ icon = func_num_args ( ) > 1 ? func_get_args ( ) : $ icon ; return $ this -> formatTemplate ( 'tag' , [ 'attrs' => $ this -> templater ( ) -> formatAttributes ( [ 'class' => $ this -> buildIconClasses ( $ icon ) ] ) , 'content' => ' ' , 'tag' => 'i' , ] ) ; }
Returns icons tag.

Example:
<code>
echo $this->Html->icon('home');
</code>
Returns:
<code>
<i class="fas fa-home"> </i>
</code>

Example:
<code>
echo $this->Html->icon(['hand-o-right', '2x']);
</code>
Returns:
<code>
<i class="fas fa-hand-o-right fa-2x"> </i>
</code>
@param string|array $icon Icons. You can also pass multiple arguments
@return string
@see http://fortawesome.github.io/Font-Awesome Font Awesome icons
@uses buildIconClasses()
Returns icons tag .