yii\data\DataProviderInterface::getSort PHP 메소드

getSort() 공개 메소드

public getSort ( ) : Sort
리턴 Sort the sorting object. If this is false, it means the sorting is disabled.
    public function getSort();

Usage Example

예제 #1
0
 public function renderSorter(array $options)
 {
     return LinkSorter::widget(array_merge(['show' => true, 'sort' => $this->dataProvider->getSort(), 'buttonClass' => 'btn btn-default dropdown-toggle btn-sm'], $options));
 }