Msieprawski\ResourceTable\Presenters\DefaultPresenter::getPreviousButton PHP Метод

getPreviousButton() защищенный Метод

Get the previous page pagination element.
protected getPreviousButton ( string $text = '«' ) : string
$text string
Результат string
    protected function getPreviousButton($text = '«')
    {
        // If the current page is less than or equal to one, it means we can't go any
        // further back in the pages, so we will render a disabled previous button
        // when that is the case. Otherwise, we will give it an active "status".
        if ($this->paginator->currentPage() <= 1) {
            return $this->getDisabledTextWrapper($text);
        }
        $url = $this->paginator->url($this->paginator->currentPage() - 1);
        return $this->getPageLinkWrapper($url, $text, 'prev');
    }