File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
app/code/Magento/PageCache/ViewModel Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \PageCache \ViewModel ;
9
9
10
+ use Magento \Catalog \Model \Product \ProductList \ToolbarMemorizer ;
10
11
use Magento \Framework \App \Config \ScopeConfigInterface ;
11
12
use Magento \Framework \View \Element \Block \ArgumentInterface ;
12
13
use Magento \PageCache \Model \Config ;
16
17
*/
17
18
class FormKeyProvider implements ArgumentInterface
18
19
{
19
- /**
20
- * XML PATH to enable/disable saving toolbar parameters to session
21
- */
22
- private const XML_PATH_CATALOG_REMEMBER_PAGINATION = 'catalog/frontend/remember_pagination ' ;
23
-
24
20
/**
25
21
* @var Config
26
22
*/
@@ -60,6 +56,6 @@ public function isFullPageCacheEnabled(): bool
60
56
*/
61
57
public function isPaginationCacheEnabled (): bool
62
58
{
63
- return $ this ->scopeConfig ->isSetFlag (self ::XML_PATH_CATALOG_REMEMBER_PAGINATION );
59
+ return $ this ->scopeConfig ->isSetFlag (ToolbarMemorizer ::XML_PATH_CATALOG_REMEMBER_PAGINATION );
64
60
}
65
61
}
You can’t perform that action at this time.
0 commit comments