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-catalog
Block
Product
View
AbstractView.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Block\Product\View
;
7
15
abstract
class
AbstractView
extends
\Magento\Catalog\Block\Product\AbstractProduct
16
{
20
protected
$arrayUtils
;
21
27
public
function
__construct
(
28
\
Magento
\Catalog\Block\
Product
\
Context
$context,
29
\
Magento
\Framework\Stdlib\
ArrayUtils
$arrayUtils
,
30
array
$data
= []
31
) {
32
$this->arrayUtils =
$arrayUtils
;
33
parent::__construct(
34
$context,
35
$data
36
);
37
}
38
44
public
function
getProduct
()
45
{
46
$product
= parent::getProduct();
47
if
(
$product
&&
$product
->getTypeInstance()->getStoreFilter(
$product
) ===
null
) {
48
$product
->getTypeInstance()->setStoreFilter($this->_storeManager->getStore(),
$product
);
49
}
50
return
$product
;
51
}
52
61
public
function
decorateArray
($array,
$prefix
=
'decorated_'
, $forceSetAll =
false
)
62
{
63
return
$this->arrayUtils->decorateArray($array,
$prefix
, $forceSetAll);
64
}
65
}
Magento\Catalog\Block\Product\AbstractProduct
Definition:
AbstractProduct.php:16
Magento\Catalog\Block\Product\View\AbstractView
Definition:
AbstractView.php:15
Magento\Framework\Stdlib\ArrayUtils
Definition:
ArrayUtils.php:14
$prefix
$prefix
Definition:
name.phtml:25
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Catalog\Block\Product\View\AbstractView\__construct
__construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\Stdlib\ArrayUtils $arrayUtils, array $data=[])
Definition:
AbstractView.php:27
Magento\Catalog\Model\Product
Definition:
Product.php:42
Magento\Catalog\Block\Product\View\AbstractView\getProduct
getProduct()
Definition:
AbstractView.php:44
Magento
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22
Magento\Catalog\Block\Product\View\AbstractView\$arrayUtils
$arrayUtils
Definition:
AbstractView.php:20
Magento\Catalog\Block\Product\View
Definition:
AdditionalTest.php:6
Magento\Catalog\Block\Product\View\AbstractView\decorateArray
decorateArray($array, $prefix='decorated_', $forceSetAll=false)
Definition:
AbstractView.php:61
Magento\Catalog\Block\Product\Context
Definition:
Context.php:22