src/View/Helper/Traits/HelperTrait.php
protected function _createIconAttr(array $options = [])
    {
        $iconOptions = ['class' => ''];

        if (Arr::key('icon', $options)) {
            if (Arr::key('iconClass', $options)) {
                $iconOptions = $this->_addClass($iconOptions, $options['iconClass']);
                unset($options['iconClass']);
            }

            list ($options, $iconOptions) = $this->_setIconOptions($options, $iconOptions);
        }

        return [$options, $iconOptions];
    }
protected function _createIconAttr(array $options = [])
    {
        $iconOptions = ['class' => ''];

        if (Arr::key('icon', $options)) {
            if (Arr::key('iconClass', $options)) {
                $iconOptions = $this->_addClass($iconOptions, $options['iconClass']);
                unset($options['iconClass']);
            }

            list ($options, $iconOptions) = $this->_setIconOptions($options, $iconOptions);
        }

        return [$options, $iconOptions];
    }
protected function _createIconAttr ( array $ options = [ ] ) { $ iconOptions = [ 'class' => '' ] ; if ( Arr :: key ( 'icon' , $ options ) ) { if ( Arr :: key ( 'iconClass' , $ options ) ) { $ iconOptions = $ this -> _addClass ( $ iconOptions , $ options [ 'iconClass' ] ) ; unset ( $ options [ 'iconClass' ] ) ; } list ( $ options , $ iconOptions ) = $ this -> _setIconOptions ( $ options , $ iconOptions ) ; } return [ $ options , $ iconOptions ] ; }
Create icon attributes.

@param   array $options
@return  array
Create icon attributes .