We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 253082a commit d9e65bcCopy full SHA for d9e65bc
1 file changed
Block/RelatedProductList.php
@@ -67,11 +67,18 @@ public function getTemplate()
67
return $this->getPassedTemplate() ?: $this->getTemplateFromRule() ?: parent::getTemplate();
68
}
69
70
+ /**
71
+ * @return string
72
+ */
73
private function getPassedTemplate(): string
74
{
75
return $this->_data['template'] ?? '';
76
77
78
79
80
+ * @throws \Magento\Framework\Exception\LocalizedException
81
82
private function getTemplateFromRule(): string
83
84
$rule = $this->getRule();
0 commit comments