コード例 #1
0
ファイル: Tabs.php プロジェクト: pradeep-wagento/magento2
 /**
  * Getting attribute block name for tabs
  *
  * @return string
  */
 public function getAttributeTabBlock()
 {
     if ($block = $this->_helperCatalog->getCategoryAttributeTabBlock()) {
         return $block;
     }
     return $this->_attributeTabBlock;
 }
コード例 #2
0
 /**
  * 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;
 }
コード例 #3
0
ファイル: Tabs.php プロジェクト: shabbirvividads/magento2
 /**
  * Getting attribute block name for tabs
  *
  * @return string
  */
 public function getAttributeTabBlock()
 {
     if ($this->_helperCatalog->getAttributeTabBlock() === null) {
         return $this->_attributeTabBlock;
     }
     return $this->_helperCatalog->getAttributeTabBlock();
 }