src/View/Helper/Traits/HelperTrait.php
protected function _createIcon(HtmlHelper $html, $title, array $options = [])
    {
        list($options, $iconOptions) = $this->_createIconAttr($options);

        if (Arr::key('createIcon', $iconOptions)) {
            unset($iconOptions['createIcon']);
            $title = $html->icon($options['icon'], $iconOptions) . PHP_EOL . $title;
            unset($options['icon']);
        }

        if (Arr::key('iconInline', $options)) {
            unset($options['iconInline']);
        }

        return [$title, $options];
    }
protected function _createIcon(HtmlHelper $html, $title, array $options = [])
    {
        list($options, $iconOptions) = $this->_createIconAttr($options);

        if (Arr::key('createIcon', $iconOptions)) {
            unset($iconOptions['createIcon']);
            $title = $html->icon($options['icon'], $iconOptions) . PHP_EOL . $title;
            unset($options['icon']);
        }

        if (Arr::key('iconInline', $options)) {
            unset($options['iconInline']);
        }

        return [$title, $options];
    }
protected function _createIcon ( HtmlHelper $ html , $ title , array $ options = [ ] ) { list ( $ options , $ iconOptions ) = $ this -> _createIconAttr ( $ options ) ; if ( Arr :: key ( 'createIcon' , $ iconOptions ) ) { unset ( $ iconOptions [ 'createIcon' ] ) ; $ title = $ html -> icon ( $ options [ 'icon' ] , $ iconOptions ) . PHP_EOL . $ title ; unset ( $ options [ 'icon' ] ) ; } if ( Arr :: key ( 'iconInline' , $ options ) ) { unset ( $ options [ 'iconInline' ] ) ; } return [ $ title , $ options ] ; }
Create current icon.

@param   HtmlHelper $html
@param   string|int $title
@param   array $options
@return  array
Create current icon .