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-review
Block
Adminhtml
ReviewTab.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Review\Block\Adminhtml
;
7
8
use
Magento\Backend\Block\Template\Context
;
9
use
Magento\Customer\Controller\RegistryConstants
;
10
use
Magento\Framework\Registry
;
11
use
Magento\Ui\Component\Layout\Tabs\TabWrapper
;
12
18
class
ReviewTab
extends
TabWrapper
19
{
25
protected
$coreRegistry
=
null
;
26
30
protected
$isAjaxLoaded
=
true
;
31
39
public
function
__construct
(
Context
$context,
Registry
$registry
, array
$data
= [])
40
{
41
$this->coreRegistry =
$registry
;
42
parent::__construct($context,
$data
);
43
}
44
48
public
function
canShowTab
()
49
{
50
return
$this->coreRegistry->registry(
RegistryConstants::CURRENT_CUSTOMER_ID
);
51
}
52
58
public
function
getTabLabel
()
59
{
60
return
__
(
'Product Reviews'
);
61
}
62
68
public
function
getTabUrl
()
69
{
70
return
$this->
getUrl
(
'customer/*/productReviews'
, [
'_current'
=>
true
]);
71
}
72
}
Magento\Backend\Block\Template\Context
Definition:
Context.php:23
Magento\Review\Block\Adminhtml\ReviewTab\canShowTab
canShowTab()
Definition:
ReviewTab.php:48
Magento\Customer\Controller\RegistryConstants\CURRENT_CUSTOMER_ID
const CURRENT_CUSTOMER_ID
Definition:
RegistryConstants.php:17
Magento\Ui\Component\Layout\Tabs\TabWrapper
Definition:
TabWrapper.php:13
Magento\Review\Block\Adminhtml\ReviewTab
Definition:
ReviewTab.php:18
Magento\Review\Block\Adminhtml\ReviewTab\$coreRegistry
$coreRegistry
Definition:
ReviewTab.php:25
Magento\Customer\Controller\RegistryConstants
Definition:
RegistryConstants.php:12
__
__()
Definition:
__.php:13
$registry
$registry
Definition:
bundle_product_with_not_visible_children_rollback.php:16
Magento\Review\Block\Adminhtml\ReviewTab\$isAjaxLoaded
$isAjaxLoaded
Definition:
ReviewTab.php:30
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\View\Element\AbstractBlock\getUrl
getUrl($route='', $params=[])
Definition:
AbstractBlock.php:773
Magento\Review\Block\Adminhtml\ReviewTab\__construct
__construct(Context $context, Registry $registry, array $data=[])
Definition:
ReviewTab.php:39
Magento\Framework\Registry
Definition:
Registry.php:18
Magento\Review\Block\Adminhtml\ReviewTab\getTabLabel
getTabLabel()
Definition:
ReviewTab.php:58
Magento\Review\Block\Adminhtml\ReviewTab\getTabUrl
getTabUrl()
Definition:
ReviewTab.php:68
Magento\Review\Block\Adminhtml