src/widgets/LinkSorter.php
protected function renderSortLinks()
    {
        $attributes = empty($this->attributes) ? array_keys($this->sort->attributes) : $this->attributes;
        $links      = [];
        foreach ($attributes as $name) {
            $links[] = $this->sort->link($name);
        }

        return $this->render('LinkSorterView', [
            'id'             => $this->id,
            'links'          => $links,
            'attributes'     => $this->sort->attributes,
            'options'        => array_merge($this->options, ['encode' => false]),
            'containerClass' => $this->containerClass,
            'buttonClass'    => $this->buttonClass,
            'uiModel'        => $this->uiModel,
        ]);
    }
protected function renderSortLinks()
    {
        $attributes = empty($this->attributes) ? array_keys($this->sort->attributes) : $this->attributes;
        $links      = [];
        foreach ($attributes as $name) {
            $links[] = $this->sort->link($name);
        }

        return $this->render('LinkSorterView', [
            'id'             => $this->id,
            'links'          => $links,
            'attributes'     => $this->sort->attributes,
            'options'        => array_merge($this->options, ['encode' => false]),
            'containerClass' => $this->containerClass,
            'buttonClass'    => $this->buttonClass,
            'uiModel'        => $this->uiModel,
        ]);
    }
protected function renderSortLinks ( ) { $ attributes = empty ( $ this -> attributes ) ? array_keys ( $ this -> sort -> attributes ) : $ this -> attributes ; $ links = [ ] ; foreach ( $ attributes as $ name ) { $ links [ ] = $ this -> sort -> link ( $ name ) ; } return $ this -> render ( 'LinkSorterView' , [ 'id' => $ this -> id , 'links' => $ links , 'attributes' => $ this -> sort -> attributes , 'options' => array_merge ( $ this -> options , [ 'encode' => false ] ) , 'containerClass' => $ this -> containerClass , 'buttonClass' => $ this -> buttonClass , 'uiModel' => $ this -> uiModel , ] ) ; }
Renders the sort links.

@return string the rendering result
Renders the sort links .