22 private $productTypes;
46 return [
'productType' => $this->getProductTypes()];
55 private function getProductTypes()
57 if ($this->productTypes ===
null) {
58 $this->productTypes = [];
65 $productTypes[] = $this->
escapeHtml($product->getTypeId());
67 $this->productTypes = array_unique($productTypes);
70 return $this->productTypes;
79 if (!$this->getProductTypes()) {
82 return parent::_toHtml();
escapeHtml($data, $allowedTags=null)
__construct(\Magento\Framework\View\Element\Template\Context $context, array $data=[])