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-customer
Block
Adminhtml
Edit
Tab
View.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Customer\Block\Adminhtml\Edit\Tab
;
7
8
use
Magento\Customer\Controller\RegistryConstants
;
9
use
Magento\Ui\Component\Layout\Tabs\TabInterface
;
10
14
class
View
extends
\Magento\Backend\Block\Template
implements
TabInterface
15
{
21
protected
$_coreRegistry
;
22
28
public
function
__construct
(
29
\
Magento
\Backend\Block\Template\
Context
$context,
30
\
Magento
\Framework\Registry
$registry
,
31
array
$data
= []
32
) {
33
$this->_coreRegistry =
$registry
;
34
parent::__construct($context,
$data
);
35
}
36
40
public
function
getCustomerId
()
41
{
42
return
$this->_coreRegistry->registry(
RegistryConstants::CURRENT_CUSTOMER_ID
);
43
}
44
48
public
function
getTabLabel
()
49
{
50
return
__
(
'Customer View'
);
51
}
52
56
public
function
getTabTitle
()
57
{
58
return
__
(
'Customer View'
);
59
}
60
64
public
function
canShowTab
()
65
{
66
if
($this->
getCustomerId
()) {
67
return
true
;
68
}
69
return
false
;
70
}
71
75
public
function
isHidden
()
76
{
77
if
($this->
getCustomerId
()) {
78
return
false
;
79
}
80
return
true
;
81
}
82
88
public
function
getTabClass
()
89
{
90
return
''
;
91
}
92
98
public
function
getTabUrl
()
99
{
100
return
''
;
101
}
102
108
public
function
isAjaxLoaded
()
109
{
110
return
false
;
111
}
112
}
Magento\Customer\Block\Adminhtml\Edit\Tab\View
Definition:
View.php:14
Magento\Customer\Controller\RegistryConstants\CURRENT_CUSTOMER_ID
const CURRENT_CUSTOMER_ID
Definition:
RegistryConstants.php:17
Magento\Ui\Component\Layout\Tabs\TabInterface
Definition:
TabInterface.php:11
Magento\Backend\Block\Template
Definition:
Template.php:33
Magento\Customer\Block\Adminhtml\Edit\Tab\View\getTabUrl
getTabUrl()
Definition:
View.php:98
Magento\Customer\Controller\RegistryConstants
Definition:
RegistryConstants.php:12
Magento\Customer\Block\Adminhtml\Edit\Tab\View\canShowTab
canShowTab()
Definition:
View.php:64
__
__()
Definition:
__.php:13
Magento\Customer\Block\Adminhtml\Edit\Tab\View\getTabLabel
getTabLabel()
Definition:
View.php:48
Magento\Customer\Block\Adminhtml\Edit\Tab\View\getTabClass
getTabClass()
Definition:
View.php:88
$registry
$registry
Definition:
bundle_product_with_not_visible_children_rollback.php:16
Magento\Customer\Block\Adminhtml\Edit\Tab\View\getCustomerId
getCustomerId()
Definition:
View.php:40
Magento\Customer\Block\Adminhtml\Edit\Tab\View\getTabTitle
getTabTitle()
Definition:
View.php:56
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Customer\Block\Adminhtml\Edit\Tab\View\isAjaxLoaded
isAjaxLoaded()
Definition:
View.php:108
Magento\Customer\Block\Adminhtml\Edit\Tab\View\$_coreRegistry
$_coreRegistry
Definition:
View.php:21
Magento
Magento\Customer\Block\Adminhtml\Edit\Tab\View\__construct
__construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, array $data=[])
Definition:
View.php:28
Context
Definition:
ClassesForConstructorIntegrity.php:33
Magento\Customer\Block\Adminhtml\Edit\Tab\View\isHidden
isHidden()
Definition:
View.php:75
Magento\Customer\Block\Adminhtml\Edit\Tab
Definition:
CartsTest.php:6