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
FormFactory.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Customer\Model\Metadata
;
9
10
class
FormFactory
11
{
15
protected
$_objectManager
;
16
20
public
function
__construct
(\
Magento
\Framework\ObjectManagerInterface
$objectManager
)
21
{
22
$this->_objectManager =
$objectManager
;
23
}
24
36
public
function
create
(
37
$entityType
,
38
$formCode,
39
array
$attributeValues
= [],
40
$isAjax =
false
,
41
$ignoreInvisible =
Form::IGNORE_INVISIBLE
,
42
$filterAttributes = []
43
) {
44
$params
= [
45
'entityType'
=>
$entityType
,
46
'formCode'
=> $formCode,
47
'attributeValues'
=>
$attributeValues
,
48
'ignoreInvisible'
=> $ignoreInvisible,
49
'filterAttributes'
=> $filterAttributes,
50
'isAjax'
=> $isAjax,
51
];
52
return
$this->_objectManager->create(\
Magento
\
Customer
\Model\Metadata\Form::class,
$params
);
53
}
54
}
Magento\Customer\Model\Metadata\FormFactory\create
create( $entityType, $formCode, array $attributeValues=[], $isAjax=false, $ignoreInvisible=Form::IGNORE_INVISIBLE, $filterAttributes=[])
Definition:
FormFactory.php:36
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Customer\Model\Metadata\Form\IGNORE_INVISIBLE
const IGNORE_INVISIBLE
Definition:
Form.php:20
Magento\Customer\Model\Metadata\FormFactory
Definition:
FormFactory.php:10
$entityType
$entityType
Definition:
attribute_set_with_image_attribute.php:13
Magento\Customer\Model\Metadata\FormFactory\$_objectManager
$_objectManager
Definition:
FormFactory.php:15
Magento\Customer\Model\Metadata
Definition:
FormFactoryTest.php:6
Magento
$attributeValues
$attributeValues
Definition:
multiple_mixed_products.php:31
Magento\Customer\Model\Metadata\FormFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
FormFactory.php:20
$params
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition:
website.php:18
Magento\Customer\Model\Customer
Definition:
Customer.php:46