diff --git a/Block/Menu.php b/Block/Menu.php index 07a0853e..9ce9f743 100644 --- a/Block/Menu.php +++ b/Block/Menu.php @@ -9,6 +9,7 @@ use Magento\Framework\View\Element\Template; use Magento\Framework\Event\Manager as EventManager; use Magento\Framework\Escaper; +use Snowdog\Menu\Api\Data\NodeInterface; use Snowdog\Menu\Api\MenuRepositoryInterface; use Snowdog\Menu\Api\NodeRepositoryInterface; use Snowdog\Menu\Model\Menu\Node\Image\File as ImageFile; @@ -268,7 +269,7 @@ public function isViewAllLinkAllowed($nodeType) } /** - * @param NodeRepositoryInterface $node + * @param NodeInterface $node * @return string */ public function renderViewAllLink($node) @@ -279,7 +280,7 @@ public function renderViewAllLink($node) } /** - * @param NodeRepositoryInterface $node + * @param NodeInterface $node * @return string */ public function renderMenuNode($node) @@ -381,7 +382,7 @@ public function getMenuCssClass($defaultClass = '') } /** - * @param NodeRepositoryInterface $node + * @param NodeInterface $node * @return Template */ private function getMenuNodeBlock($node) @@ -404,6 +405,9 @@ private function getMenuNodeBlock($node) ->setImage($node->getImage()) ->setImageUrl($node->getImage() ? $this->imageFile->getUrl($node->getImage()) : null) ->setImageAltText($node->getImageAltText()) + ->setImageWidth($node->getImageWidth()) + ->setImageHeight($node->getImageHeight()) + ->setImageAltText($node->getImageAltText()) ->setCustomTemplate($node->getNodeTemplate()) ->setAdditionalData($node->getAdditionalData()) ->setSelectedItemId($node->getSelectedItemId());