File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
app/code/Magento/Swatches/Block/Product/Renderer Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -365,9 +365,8 @@ protected function getConfigurableOptionsIds(array $attributeData)
365
365
}
366
366
367
367
/**
368
- * Return HTML code
368
+ * Produce and return block's html output.
369
369
*
370
- * @codeCoverageIgnore
371
370
* @return string
372
371
*/
373
372
protected function _toHtml ()
Original file line number Diff line number Diff line change @@ -22,13 +22,29 @@ protected function getRendererTemplate()
22
22
}
23
23
24
24
/**
25
+ * Produce and return block's html output.
26
+ *
27
+ * @return string
28
+ */
29
+ protected function _toHtml ()
30
+ {
31
+ $ output = '' ;
32
+ if ($ this ->isProductHasSwatchAttribute ) {
33
+ $ output = parent ::_toHtml ();
34
+ }
35
+
36
+ return $ output ;
37
+ }
38
+
39
+ /**
40
+ * @deprecated
25
41
* @return string
26
42
*/
27
43
protected function getHtmlOutput ()
28
44
{
29
45
$ output = '' ;
30
46
if ($ this ->isProductHasSwatchAttribute ) {
31
- $ output = parent ::toHtml ();
47
+ $ output = parent ::getHtmlOutput ();
32
48
}
33
49
34
50
return $ output ;
You can’t perform that action at this time.
0 commit comments