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-eav
Model
Form
Factory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Eav\Model\Form
;
7
13
class
Factory
14
{
18
protected
$_objectManager
;
19
24
public
function
__construct
(\
Magento
\Framework\
ObjectManagerInterface
$objectManager
)
25
{
26
$this->_objectManager =
$objectManager
;
27
}
28
37
public
function
create
($form, array
$data
= [])
38
{
39
$formInstance = $this->_objectManager->create($form,
$data
);
40
if
(
false
== $formInstance instanceof \
Magento
\Eav\Model\
Form
) {
41
throw
new \InvalidArgumentException($form .
' is not instance of \Magento\Eav\Model\Form'
);
42
}
43
return
$formInstance;
44
}
45
}
Magento\Eav\Model\Form
Definition:
Form.php:18
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Eav\Model\Form\Factory\create
create($form, array $data=[])
Definition:
Factory.php:37
Magento\Eav\Model\Form\Factory\$_objectManager
$_objectManager
Definition:
Factory.php:18
Magento\Eav\Model\Form\Factory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
Factory.php:24
Magento
Magento\Eav\Model\Form
Definition:
Element.php:7
Magento\Eav\Model\Form\Factory
Definition:
Factory.php:13