yii\data\DataProviderInterface::getSort PHP Method

getSort() public method

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

Usage Example

Beispiel #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));
 }