src/View/Helper/Traits/HelperTrait.php
protected function _setIconOptions(array $options = [], array $iconOptions = [])
    {
        $icon = $options['icon'];
        if (Arr::key('iconInline', $options)) {
            $iconPrefix = $this->_configRead('iconPref');
            $options = $this->_addClass($options, implode(' ', [
                $this->_class('icon'),
                $iconPrefix,
                $iconPrefix . '-' . $icon
            ]));

            unset($options['icon']);
        } else {
            $options['escape'] = false;
            $iconOptions['createIcon'] = true;
        }

        return [$options, $iconOptions];
    }
protected function _setIconOptions(array $options = [], array $iconOptions = [])
    {
        $icon = $options['icon'];
        if (Arr::key('iconInline', $options)) {
            $iconPrefix = $this->_configRead('iconPref');
            $options = $this->_addClass($options, implode(' ', [
                $this->_class('icon'),
                $iconPrefix,
                $iconPrefix . '-' . $icon
            ]));

            unset($options['icon']);
        } else {
            $options['escape'] = false;
            $iconOptions['createIcon'] = true;
        }

        return [$options, $iconOptions];
    }
protected function _setIconOptions ( array $ options = [ ] , array $ iconOptions = [ ] ) { $ icon = $ options [ 'icon' ] ; if ( Arr :: key ( 'iconInline' , $ options ) ) { $ iconPrefix = $ this -> _configRead ( 'iconPref' ) ; $ options = $ this -> _addClass ( $ options , implode ( ' ' , [ $ this -> _class ( 'icon' ) , $ iconPrefix , $ iconPrefix . '-' . $ icon ] ) ) ; unset ( $ options [ 'icon' ] ) ; } else { $ options [ 'escape' ] = false ; $ iconOptions [ 'createIcon' ] = true ; } return [ $ options , $ iconOptions ] ; }
Setup icon options.

@param   array $options
@param   array $iconOptions
@return  array
Setup icon options .