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