Example #1
0
 /**
  * Getting attribute block name for tabs
  *
  * @return string
  */
 public function getAttributeTabBlock()
 {
     if ($block = $this->_helperCatalog->getCategoryAttributeTabBlock()) {
         return $block;
     }
     return $this->_attributeTabBlock;
 }
 /**
  * Setting attribute tab block for bundle
  *
  * @param \Magento\Framework\Event\Observer $observer
  * @return $this
  */
 public function execute(\Magento\Framework\Event\Observer $observer)
 {
     $product = $observer->getEvent()->getProduct();
     if ($product->getTypeId() == \Magento\Catalog\Model\Product\Type::TYPE_BUNDLE) {
         $this->helperCatalog->setAttributeTabBlock('Magento\\Bundle\\Block\\Adminhtml\\Catalog\\Product\\Edit\\Tab\\Attributes');
     }
     return $this;
 }
Example #3
0
 /**
  * Getting attribute block name for tabs
  *
  * @return string
  */
 public function getAttributeTabBlock()
 {
     if ($this->_helperCatalog->getAttributeTabBlock() === null) {
         return $this->_attributeTabBlock;
     }
     return $this->_helperCatalog->getAttributeTabBlock();
 }