Skip to content

Commit d9e65bc

Browse files
author
Bohdan Berezhniy
committed
added comments
1 parent 253082a commit d9e65bc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Block/RelatedProductList.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,18 @@ public function getTemplate()
6767
return $this->getPassedTemplate() ?: $this->getTemplateFromRule() ?: parent::getTemplate();
6868
}
6969

70+
/**
71+
* @return string
72+
*/
7073
private function getPassedTemplate(): string
7174
{
7275
return $this->_data['template'] ?? '';
7376
}
7477

78+
/**
79+
* @return string
80+
* @throws \Magento\Framework\Exception\LocalizedException
81+
*/
7582
private function getTemplateFromRule(): string
7683
{
7784
$rule = $this->getRule();

0 commit comments

Comments
 (0)