think\paginator\driver\Bootstrap::getPreviousButton PHP Метод

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

上一页按钮
protected getPreviousButton ( string $text = "«" ) : string
$text string
Результат string
    protected function getPreviousButton($text = "«")
    {
        if ($this->currentPage() <= 1) {
            return $this->getDisabledTextWrapper($text);
        }
        $url = $this->url($this->currentPage() - 1);
        return $this->getPageLinkWrapper($url, $text);
    }