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 1010use Magento \Framework \App \Config \ScopeConfigInterface ;
1111use Magento \Framework \App \ObjectManager ;
1212use Magento \Framework \DataObject ;
13+ use Magento \Framework \Serialize \Serializer \Json ;
1314use Magento \Framework \Serialize \Serializer \JsonHexTag ;
1415use Magento \Framework \View \Element \Block \ArgumentInterface ;
1516use Magento \Framework \Escaper ;
@@ -44,13 +45,15 @@ class Breadcrumbs extends DataObject implements ArgumentInterface
4445 /**
4546 * @param Data $catalogData
4647 * @param ScopeConfigInterface $scopeConfig
48+ * @param Json|null $json
4749 * @param JsonHexTag $jsonSerializer
4850 * @param Escaper|null $escaper
4951 * @SuppressWarnings(PHPMD.UnusedFormalParameter)
5052 */
5153 public function __construct (
5254 Data $ catalogData ,
5355 ScopeConfigInterface $ scopeConfig ,
56+ Json $ json = null ,
5457 JsonHexTag $ jsonSerializer ,
5558 Escaper $ escaper = null
5659 ) {
@@ -114,7 +117,7 @@ public function getJsonConfigurationHtmlEscaped() : string
114117 'useCategoryPathInUrl ' => (int )$ this ->isCategoryUsedInProductUrl (),
115118 'product ' => $ this ->escaper ->escapeHtml ($ this ->getProductName ())
116119 ]
117- ]
120+ ]
118121 );
119122 }
120123
You can’t perform that action at this time.
0 commit comments