File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed
app/code/Magento/Swatches/Block/Product/Renderer Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -365,30 +365,18 @@ protected function getConfigurableOptionsIds(array $attributeData)
365
365
}
366
366
367
367
/**
368
- * Produce and return block's html output
368
+ * Return HTML code
369
369
*
370
370
* @codeCoverageIgnore
371
371
* @return string
372
372
*/
373
- public function toHtml ()
373
+ protected function _toHtml ()
374
374
{
375
375
$ this ->initIsProductHasSwatchAttribute ();
376
376
$ this ->setTemplate (
377
377
$ this ->getRendererTemplate ()
378
378
);
379
-
380
- return parent ::toHtml ();
381
- }
382
-
383
- /**
384
- * Return HTML code
385
- *
386
- * @codeCoverageIgnore
387
- * @return string
388
- */
389
- protected function _toHtml ()
390
- {
391
- return $ this ->getHtmlOutput ();
379
+ return parent ::_toHtml ();
392
380
}
393
381
394
382
/**
@@ -402,6 +390,7 @@ protected function getRendererTemplate()
402
390
}
403
391
404
392
/**
393
+ * @deprecated
405
394
* @codeCoverageIgnore
406
395
* @return string
407
396
*/
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ protected function getHtmlOutput()
28
28
{
29
29
$ output = '' ;
30
30
if ($ this ->isProductHasSwatchAttribute ) {
31
- $ output = parent ::getHtmlOutput ();
31
+ $ output = parent ::toHtml ();
32
32
}
33
33
34
34
return $ output ;
You can’t perform that action at this time.
0 commit comments