@@ -40,7 +40,7 @@ class Grid extends \Magento\Checkout\Block\Cart
40
40
*
41
41
* @var bool
42
42
*/
43
- private $ isDisplayPager ;
43
+ private $ isPagerDisplayed ;
44
44
45
45
/**
46
46
* Grid constructor.
@@ -88,7 +88,7 @@ public function __construct(
88
88
*/
89
89
protected function _construct ()
90
90
{
91
- if (!$ this ->isDisplayPagerOnPage ()) {
91
+ if (!$ this ->isPagerDisplayedOnPage ()) {
92
92
parent ::_construct ();
93
93
}
94
94
if ($ this ->hasData ('template ' )) {
@@ -102,7 +102,7 @@ protected function _construct()
102
102
protected function _prepareLayout ()
103
103
{
104
104
parent ::_prepareLayout ();
105
- if ($ this ->isDisplayPagerOnPage ()) {
105
+ if ($ this ->isPagerDisplayedOnPage ()) {
106
106
$ availableLimit = (int )$ this ->_scopeConfig ->getValue (
107
107
self ::XPATH_CONFIG_NUMBER_ITEMS_TO_DISPLAY_PAGER ,
108
108
\Magento \Store \Model \ScopeInterface::SCOPE_STORE
@@ -143,7 +143,7 @@ public function getItemsForGrid()
143
143
*/
144
144
public function getItems ()
145
145
{
146
- if (!$ this ->isDisplayPagerOnPage ()) {
146
+ if (!$ this ->isPagerDisplayedOnPage ()) {
147
147
return parent ::getItems ();
148
148
}
149
149
return $ this ->getItemsForGrid ()->getItems ();
@@ -155,15 +155,15 @@ public function getItems()
155
155
*
156
156
* @return bool
157
157
*/
158
- private function isDisplayPagerOnPage ()
158
+ private function isPagerDisplayedOnPage ()
159
159
{
160
- if (!$ this ->isDisplayPager ) {
160
+ if (!$ this ->isPagerDisplayed ) {
161
161
$ availableLimit = (int )$ this ->_scopeConfig ->getValue (
162
162
self ::XPATH_CONFIG_NUMBER_ITEMS_TO_DISPLAY_PAGER ,
163
163
\Magento \Store \Model \ScopeInterface::SCOPE_STORE
164
164
);
165
- $ this ->isDisplayPager = !$ this ->getCustomItems () && $ availableLimit < $ this ->getItemsCount ();
165
+ $ this ->isPagerDisplayed = !$ this ->getCustomItems () && $ availableLimit < $ this ->getItemsCount ();
166
166
}
167
- return $ this ->isDisplayPager ;
167
+ return $ this ->isPagerDisplayed ;
168
168
}
169
169
}
0 commit comments