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
Model
Plugin
Product.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Bundle\Model\Plugin
;
7
8
use
Magento\Bundle\Model\Product\Type
;
9
use
Magento\Catalog\Model\Product
as
CatalogProduct
;
10
11
class
Product
12
{
16
private
$type;
17
21
public
function
__construct
(
Type
$type)
22
{
23
$this->type =
$type
;
24
}
25
31
public
function
afterGetIdentities
(
32
CatalogProduct
$product
,
33
array $identities
34
) {
35
foreach
($this->type->getParentIdsByChild(
$product
->getEntityId()) as $parentId) {
36
$identities[] = CatalogProduct::CACHE_TAG .
'_'
. $parentId;
37
}
38
return
$identities;
39
}
40
}
Magento\Bundle\Model\Plugin\Product
Definition:
Product.php:11
Magento\Bundle\Model\Plugin\Product\__construct
__construct(Type $type)
Definition:
Product.php:21
Magento\Bundle\Model\Product\Type
Definition:
Type.php:25
$type
$type
Definition:
item.phtml:13
Magento\Catalog\Model\Product
Definition:
ActionTest.php:6
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22
Magento\Catalog\Helper\Product
Definition:
CompareTest.php:6
Magento\Bundle\Model\Plugin
Definition:
PriceBackend.php:6
Magento\Bundle\Model\Plugin\Product\afterGetIdentities
afterGetIdentities(CatalogProduct $product, array $identities)
Definition:
Product.php:31