22 protected $_template =
'Magento_Theme::html/pager.phtml';
115 parent::_construct();
116 $this->
setData(
'show_amounts',
true);
117 $this->
setData(
'use_container',
true);
140 if ($this->_limit !==
null) {
146 if (isset($limits[$limit])) {
151 $limits = array_keys($limits);
163 $this->_limit = $limit;
200 $this->_pageVarName = $varName;
218 $this->_showPerPage = $varName;
241 $this->_limitVarName = $varName;
263 $this->_availableLimit = $limits;
362 $half = ceil($this->_displayPages / 2);
367 $finish =
$start + $this->_displayPages - 1;
373 $start = $finish - $this->_displayPages + 1;
375 return range(
$start, $finish);
446 $urlParams[
'_current'] =
true;
447 $urlParams[
'_escape'] =
true;
448 $urlParams[
'_use_rewrite'] =
true;
450 $urlParams[
'_query'] =
$params;
460 return $this->
_getData(
'path') ?:
'*/*/*';
494 return range(
$start, $end);
509 if ($frameStart - 1 > 1) {
510 return max(2, $frameStart - $this->
getJump());
583 $frame = abs(intval($frame));
589 $this->_frameLength = $frame;
603 $jump = abs(intval($jump));
604 if ($this->
getJump() != $jump) {
606 $this->_jump = $jump;
682 $this->_frameStart =
$start;
683 $this->_frameEnd = $end;
699 $this->_frameInitialized = (bool)$flag;
720 return $this->_scopeConfig->getValue(
721 'design/pagination/anchor_text_for_previous',
722 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE
733 return $this->_scopeConfig->getValue(
734 'design/pagination/anchor_text_for_next',
735 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE
747 $this->_outputRequired = (bool)$isRequired;
759 return parent::_toHtml();
782 $this->_fragment = $fragment;
elseif(isset( $params[ 'redirect_parent']))
getUrl($route='', $params=[])
setData($key, $value=null)
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]