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
Widget
Taxvat.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Customer\Block\Widget
;
8
9
use
Magento\Customer\Api\CustomerMetadataInterface
;
10
16
class
Taxvat
extends
AbstractWidget
17
{
26
public
function
__construct
(
27
\
Magento
\Framework\View\Element\Template\
Context
$context,
28
\
Magento
\Customer\Helper\Address $addressHelper,
29
CustomerMetadataInterface
$customerMetadata
,
30
array
$data
= []
31
) {
32
parent::__construct($context, $addressHelper,
$customerMetadata
,
$data
);
33
$this->_isScopePrivate =
true
;
34
}
35
41
public
function
_construct
()
42
{
43
parent::_construct();
44
$this->
setTemplate
(
'Magento_Customer::widget/taxvat.phtml'
);
45
}
46
52
public
function
isEnabled
()
53
{
54
return
$this->
_getAttribute
(
'taxvat'
) ? (bool)$this->
_getAttribute
(
'taxvat'
)->isVisible() :
false
;
55
}
56
62
public
function
isRequired
()
63
{
64
return
$this->
_getAttribute
(
'taxvat'
) ? (bool)$this->
_getAttribute
(
'taxvat'
)->isRequired() :
false
;
65
}
66
}
Magento\Framework\View\Element\Template\setTemplate
setTemplate($template)
Definition:
Template.php:203
Magento\Customer\Block\Widget\AbstractWidget\$customerMetadata
$customerMetadata
Definition:
AbstractWidget.php:16
Magento\Customer\Block\Widget\Taxvat\isRequired
isRequired()
Definition:
Taxvat.php:62
Magento\Framework\View\Element\Template\Context
Definition:
Context.php:23
Magento\Customer\Api\CustomerMetadataInterface
Definition:
CustomerMetadataInterface.php:14
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Customer\Block\Widget
Definition:
CompanyTest.php:6
Magento
Magento\Customer\Block\Widget\AbstractWidget
Definition:
AbstractWidget.php:11
Magento\Customer\Block\Widget\AbstractWidget\_getAttribute
_getAttribute($attributeCode)
Definition:
AbstractWidget.php:96
Magento\Customer\Block\Widget\Taxvat
Definition:
Taxvat.php:16
Magento\Customer\Block\Widget\Taxvat\__construct
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Helper\Address $addressHelper, CustomerMetadataInterface $customerMetadata, array $data=[])
Definition:
Taxvat.php:26
Magento\Customer\Block\Widget\Taxvat\_construct
_construct()
Definition:
Taxvat.php:41
Magento\Customer\Block\Widget\Taxvat\isEnabled
isEnabled()
Definition:
Taxvat.php:52