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-product-alert
Block
Product
View.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\ProductAlert\Block\Product
;
7
11
class
View
extends
\Magento\Framework\View\Element\Template
12
{
16
protected
$_registry
;
17
23
protected
$_helper
;
24
28
protected
$coreHelper
;
29
37
public
function
__construct
(
38
\
Magento
\Framework\
View
\Element\Template\
Context
$context,
39
\
Magento
\ProductAlert\Helper\Data
$helper
,
40
\
Magento
\Framework\Registry
$registry
,
41
\
Magento
\Framework\Data\Helper\PostHelper
$coreHelper
,
42
array
$data
= []
43
) {
44
parent::__construct($context,
$data
);
45
$this->_registry =
$registry
;
46
$this->_helper =
$helper
;
47
$this->coreHelper =
$coreHelper
;
48
}
49
55
protected
function
getProduct
()
56
{
57
$product
= $this->_registry->registry(
'current_product'
);
58
if
(
$product
&&
$product
->getId()) {
59
return
$product
;
60
}
61
return
false
;
62
}
63
69
public
function
getPostAction
()
70
{
71
return
$this->coreHelper->getPostData($this->getSignupUrl());
72
}
73
}
Magento\ProductAlert\Block\Product\View\$_helper
$_helper
Definition:
View.php:23
$helper
$helper
Definition:
iframe.phtml:13
Magento\ProductAlert\Block\Product\View\$coreHelper
$coreHelper
Definition:
View.php:28
Magento\ProductAlert\Block\Product\View
Definition:
View.php:11
$registry
$registry
Definition:
bundle_product_with_not_visible_children_rollback.php:16
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\ProductAlert\Block\Product
Definition:
ImageProvider.php:6
Magento\ProductAlert\Block\Product\View\__construct
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\ProductAlert\Helper\Data $helper, \Magento\Framework\Registry $registry, \Magento\Framework\Data\Helper\PostHelper $coreHelper, array $data=[])
Definition:
View.php:37
Magento\ProductAlert\Block\Product\View\getProduct
getProduct()
Definition:
View.php:55
Magento
Magento\ProductAlert\Block\Product\View\$_registry
$_registry
Definition:
View.php:16
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22
Magento\Framework\View\Element\Template
Definition:
Template.php:32
Magento\ProductAlert\Block\Product\View\getPostAction
getPostAction()
Definition:
View.php:69
Context
Definition:
ClassesForConstructorIntegrity.php:33