New answers tagged

0

Please try the below code. /** * @var \Magento\Cms\Model\Template\FilterProvider */ protected $filterContent; /** * @param \Magento\Framework\App\Helper\Context $context * @param \Magento\Cms\Model\Template\FilterProvider $filterContent */ public function __construct( \Magento\Framework\App\Helper\Context $context, \Magento\Cms\Model\Template\...


1

1)Create a block file: <?php namespace namespace Vendor\Extension\Block; use Magento\Framework\View\Element\Template; use Magento\Catalog\Helper\Image; use Magento\Catalog\Model\ProductFactory; use Magento\Framework\View\Element\Template\Context; class Extension extends Template { protected $imageHelper; protected $productFactory; public ...


Top 50 recent answers are included