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
Model
Metadata
AddressMetadataManagement.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Customer\Model\Metadata
;
7
8
use
Magento\Customer\Api\AddressMetadataManagementInterface
;
9
use
Magento\Customer\Api\Data\AttributeMetadataInterface
;
10
14
class
AddressMetadataManagement
implements
AddressMetadataManagementInterface
15
{
19
protected
$attributeResolver
;
20
24
public
function
__construct
(
25
AttributeResolver
$attributeResolver
26
) {
27
$this->attributeResolver =
$attributeResolver
;
28
}
29
33
public
function
canBeSearchableInGrid
(
AttributeMetadataInterface
$attribute
)
34
{
35
return
$this->attributeResolver->getModelByAttribute(self::ENTITY_TYPE_ADDRESS,
$attribute
)
36
->canBeSearchableInGrid();
37
}
38
42
public
function
canBeFilterableInGrid
(
AttributeMetadataInterface
$attribute
)
43
{
44
return
$this->attributeResolver->getModelByAttribute(self::ENTITY_TYPE_ADDRESS,
$attribute
)
45
->canBeFilterableInGrid();
46
}
47
}
Magento\Customer\Api\Data\AttributeMetadataInterface
Definition:
AttributeMetadataInterface.php:14
Magento\Customer\Model\Metadata\AddressMetadataManagement\canBeFilterableInGrid
canBeFilterableInGrid(AttributeMetadataInterface $attribute)
Definition:
AddressMetadataManagement.php:42
$attribute
$attribute
Definition:
attribute_set_with_image_attribute.php:41
Magento\Customer\Model\Metadata\AttributeResolver
Definition:
AttributeResolver.php:13
Magento\Customer\Model\Metadata\AddressMetadataManagement
Definition:
AddressMetadataManagement.php:14
Magento\Customer\Model\Metadata\AddressMetadataManagement\canBeSearchableInGrid
canBeSearchableInGrid(AttributeMetadataInterface $attribute)
Definition:
AddressMetadataManagement.php:33
Magento\Customer\Model\Metadata
Definition:
FormFactoryTest.php:6
Magento\Customer\Api\AddressMetadataManagementInterface
Definition:
AddressMetadataManagementInterface.php:13
Magento\Customer\Model\Metadata\AddressMetadataManagement\__construct
__construct(AttributeResolver $attributeResolver)
Definition:
AddressMetadataManagement.php:24
Magento\Customer\Model\Metadata\AddressMetadataManagement\$attributeResolver
$attributeResolver
Definition:
AddressMetadataManagement.php:19