Class Toolbar
@api
- Since
- 100.0.2
Definition at line 14 of file Toolbar.php.
◆ __construct()
- Parameters
-
\Magento\Framework\App\Request\Http | $request | |
Definition at line 51 of file Toolbar.php.
◆ getCurrentPage()
Return current page from request
- Returns
- int
Definition at line 102 of file Toolbar.php.
104 $page = (int) $this->request->getParam(self::PAGE_PARM_NAME);
◆ getDirection()
Get sort direction
- Returns
- string|bool
Definition at line 72 of file Toolbar.php.
74 return $this->request->getParam(self::DIRECTION_PARAM_NAME);
◆ getLimit()
Get products per page limit
- Returns
- string|bool
Definition at line 92 of file Toolbar.php.
94 return $this->request->getParam(self::LIMIT_PARAM_NAME);
◆ getMode()
Get sort mode
- Returns
- string|bool
Definition at line 82 of file Toolbar.php.
84 return $this->request->getParam(self::MODE_PARAM_NAME);
◆ getOrder()
Get sort order
- Returns
- string|bool
Definition at line 62 of file Toolbar.php.
64 return $this->request->getParam(self::ORDER_PARAM_NAME);
◆ $request
◆ DIRECTION_PARAM_NAME
const DIRECTION_PARAM_NAME = 'product_list_dir' |
Sort direction cookie name
Definition at line 29 of file Toolbar.php.
◆ LIMIT_PARAM_NAME
const LIMIT_PARAM_NAME = 'product_list_limit' |
Products per page limit order cookie name
Definition at line 39 of file Toolbar.php.
◆ MODE_PARAM_NAME
const MODE_PARAM_NAME = 'product_list_mode' |
◆ ORDER_PARAM_NAME
const ORDER_PARAM_NAME = 'product_list_order' |
Sort order cookie name
Definition at line 24 of file Toolbar.php.
◆ PAGE_PARM_NAME
const PAGE_PARM_NAME = 'p' |
GET parameter page variable name
Definition at line 19 of file Toolbar.php.
The documentation for this class was generated from the following file:
- vendor/magento/module-catalog/Model/Product/ProductList/Toolbar.php