Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-bundle
Observer
SetAttributeTabBlockObserver.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Bundle\Observer
;
7
8
use
Magento\Framework\Event\ObserverInterface
;
9
10
class
SetAttributeTabBlockObserver
implements
ObserverInterface
11
{
17
protected
$helperCatalog
;
18
22
public
function
__construct
(\
Magento
\Catalog\Helper\Catalog
$helperCatalog
)
23
{
24
$this->helperCatalog =
$helperCatalog
;
25
}
26
33
public
function
execute
(\
Magento
\Framework\Event\Observer
$observer
)
34
{
35
$product
=
$observer
->getEvent()->getProduct();
36
if
(
$product
->getTypeId() == \Magento\Catalog\Model\Product\Type::TYPE_BUNDLE) {
37
$this->helperCatalog->setAttributeTabBlock(
38
\
Magento
\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab\Attributes::class
39
);
40
}
41
return
$this;
42
}
43
}
Magento\Bundle\Observer
Definition:
AppendUpsellProductsObserver.php:6
Magento\Framework\Event\ObserverInterface
Definition:
ObserverInterface.php:16
Magento\Bundle\Observer\SetAttributeTabBlockObserver\$helperCatalog
$helperCatalog
Definition:
SetAttributeTabBlockObserver.php:17
Magento\Bundle\Observer\SetAttributeTabBlockObserver
Definition:
SetAttributeTabBlockObserver.php:10
$observer
$observer
Definition:
second_website_with_second_currency.php:38
Magento
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22
Magento\Bundle\Observer\SetAttributeTabBlockObserver\__construct
__construct(\Magento\Catalog\Helper\Catalog $helperCatalog)
Definition:
SetAttributeTabBlockObserver.php:22
Magento\Bundle\Observer\SetAttributeTabBlockObserver\execute
execute(\Magento\Framework\Event\Observer $observer)
Definition:
SetAttributeTabBlockObserver.php:33