Skip to content

Commit 778fbfb

Browse files
committed
Deprecate const
1 parent 381ab64 commit 778fbfb

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

app/code/Magento/Catalog/Helper/Product/ProductList.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,19 @@
2121
*/
2222
class ProductList
2323
{
24+
public const XML_PATH_LIST_MODE = 'catalog/frontend/list_mode';
25+
public const DEFAULT_SORT_DIRECTION = 'asc';
26+
2427
/**
25-
* List mode configuration path
28+
* @deprecated
2629
*/
27-
const XML_PATH_LIST_MODE = 'catalog/frontend/list_mode';
28-
const DEFAULT_SORT_DIRECTION = 'asc';
30+
const VIEW_MODE_LIST = 'list';
31+
32+
/**
33+
* @deprecated
34+
*/
35+
const VIEW_MODE_GRID = 'grid';
36+
2937

3038
/**
3139
* @var ScopeConfigInterface

0 commit comments

Comments
 (0)