Devise\Support\Sortable\Link::getClearSortLink PHP Method

    public function getClearSortLink($text, $options)
    {
        $params['clearSort'] = 1;
        $url = $this->Request->url() . '?' . http_build_query($params);
        return link_to($url, $text, $options);
    }

Usage Example

Beispiel #1
0
 /**
  * @param string $label
  * @param null $options
  * @return string
  */
 public function clearSortLink($label = 'Clear Sort', $options = null)
 {
     $Link = new Link($this->Framework);
     return $Link->getClearSortLink($label, $options);
 }