File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/code/Magento/Catalog/ViewModel/Product Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 10
10
use Magento \Framework \App \Config \ScopeConfigInterface ;
11
11
use Magento \Framework \App \ObjectManager ;
12
12
use Magento \Framework \DataObject ;
13
+ use Magento \Framework \Serialize \Serializer \Json ;
13
14
use Magento \Framework \Serialize \Serializer \JsonHexTag ;
14
15
use Magento \Framework \View \Element \Block \ArgumentInterface ;
15
16
use Magento \Framework \Escaper ;
@@ -44,13 +45,15 @@ class Breadcrumbs extends DataObject implements ArgumentInterface
44
45
/**
45
46
* @param Data $catalogData
46
47
* @param ScopeConfigInterface $scopeConfig
48
+ * @param Json|null $json
47
49
* @param JsonHexTag $jsonSerializer
48
50
* @param Escaper|null $escaper
49
51
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
50
52
*/
51
53
public function __construct (
52
54
Data $ catalogData ,
53
55
ScopeConfigInterface $ scopeConfig ,
56
+ Json $ json = null ,
54
57
JsonHexTag $ jsonSerializer ,
55
58
Escaper $ escaper = null
56
59
) {
@@ -114,7 +117,7 @@ public function getJsonConfigurationHtmlEscaped() : string
114
117
'useCategoryPathInUrl ' => (int )$ this ->isCategoryUsedInProductUrl (),
115
118
'product ' => $ this ->escaper ->escapeHtml ($ this ->getProductName ())
116
119
]
117
- ]
120
+ ]
118
121
);
119
122
}
120
123
You can’t perform that action at this time.
0 commit comments