View/Helper/BootstrapHtmlHelper.php
public function icon($type, $text = '', array $options = [])
    {
        $icon = $this->iconPrefix;
        $class = "$icon $icon-$type";

        if (isset($options['class']) && !empty($class)) {
            $options['class'] = $class . ' ' . $options['class'];
        } else {
            $options['class'] = $class;
        }
        $tag = parent::tag('i', '', $options);
        return trim($tag . ' ' . $text);
    }
public function icon($type, $text = '', array $options = [])
    {
        $icon = $this->iconPrefix;
        $class = "$icon $icon-$type";

        if (isset($options['class']) && !empty($class)) {
            $options['class'] = $class . ' ' . $options['class'];
        } else {
            $options['class'] = $class;
        }
        $tag = parent::tag('i', '', $options);
        return trim($tag . ' ' . $text);
    }
public function icon ( $ type , $ text = '' , array $ options = [ ] ) { $ icon = $ this -> iconPrefix ; $ class = "$icon $icon-$type" ; if ( isset ( $ options [ 'class' ] ) && ! empty ( $ class ) ) { $ options [ 'class' ] = $ class . ' ' . $ options [ 'class' ] ; } else { $ options [ 'class' ] = $ class ; } $ tag = parent :: tag ( 'i' , '' , $ options ) ; return trim ( $ tag . ' ' . $ text ) ; }
Returns an icon element followed by a text

@example `<i class="fa fa-search"></i> Text`
@param   string $type
@param   string $text
@param   array  $options
@return  string
Returns an icon element followed by a text