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
GenericButton.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Customer\Block\Adminhtml\Edit
;
7
8
use
Magento\Customer\Controller\RegistryConstants
;
9
14
class
GenericButton
15
{
21
protected
$urlBuilder
;
22
28
protected
$registry
;
29
36
public
function
__construct
(
37
\
Magento
\Backend\Block\Widget\
Context
$context,
38
\
Magento
\Framework\Registry
$registry
39
) {
40
$this->urlBuilder = $context->getUrlBuilder();
41
$this->registry =
$registry
;
42
}
43
49
public
function
getCustomerId
()
50
{
51
return
$this->registry->registry(
RegistryConstants::CURRENT_CUSTOMER_ID
);
52
}
53
61
public
function
getUrl
($route =
''
,
$params
= [])
62
{
63
return
$this->urlBuilder->getUrl($route,
$params
);
64
}
65
}
Magento\Customer\Controller\RegistryConstants\CURRENT_CUSTOMER_ID
const CURRENT_CUSTOMER_ID
Definition:
RegistryConstants.php:17
Magento\Customer\Block\Adminhtml\Edit\GenericButton\__construct
__construct(\Magento\Backend\Block\Widget\Context $context, \Magento\Framework\Registry $registry)
Definition:
GenericButton.php:36
Magento\Customer\Block\Adminhtml\Edit\GenericButton\getCustomerId
getCustomerId()
Definition:
GenericButton.php:49
Magento\Customer\Block\Adminhtml\Edit
Magento\Customer\Controller\RegistryConstants
Definition:
RegistryConstants.php:12
Magento\Customer\Block\Adminhtml\Edit\GenericButton\getUrl
getUrl($route='', $params=[])
Definition:
GenericButton.php:61
Magento\Customer\Block\Adminhtml\Edit\GenericButton\$urlBuilder
$urlBuilder
Definition:
GenericButton.php:21
Magento\Customer\Block\Adminhtml\Edit\GenericButton\$registry
$registry
Definition:
GenericButton.php:28
Magento\Customer\Block\Adminhtml\Edit\GenericButton
Definition:
GenericButton.php:14
Magento
Context
Definition:
ClassesForConstructorIntegrity.php:33
$params
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition:
website.php:18