outputHelper = $outputHelper; $this->postHelper = $postHelper; $this->wishlistHelper = $wishlistHelper; $this->compareHelper = $compareHelper; } /** * @param ProductInterface $product * @param string $attributeHtml * @param string $attributeName * @return string * @throws \Magento\Framework\Exception\LocalizedException */ public function getProductAttribute( ProductInterface $product, string $attributeHtml, string $attributeName ): string { return $this->outputHelper->productAttribute($product, $attributeHtml, $attributeName); } /** * @param string $addToCartUrl * @param int $entityId * @return string */ public function getPostData(string $addToCartUrl, int $entityId): string { return $this->postHelper->getPostData($addToCartUrl, ['product' => $entityId]); } /** * @return \Magento\Wishlist\Helper\Data */ public function getWishlistHelper(): \Magento\Wishlist\Helper\Data { return $this->wishlistHelper; } /** * @return \Magento\Catalog\Helper\Product\Compare */ public function getCompareHelper(): \Magento\Catalog\Helper\Product\Compare { return $this->compareHelper; } }