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
framework
Data
Collection
EntityFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Data\Collection
;
7
8
class
EntityFactory
implements
EntityFactoryInterface
9
{
15
protected
$_objectManager
=
null
;
16
22
public
function
__construct
(\
Magento
\Framework\
ObjectManagerInterface
$objectManager
)
23
{
24
$this->_objectManager =
$objectManager
;
25
}
26
35
public
function
create
(
$className
, array
$data
= [])
36
{
37
$model
= $this->_objectManager->create(
$className
,
$data
);
38
//TODO: fix that when this factory used only for \Magento\Framework\Model\AbstractModel
39
//if (!$model instanceof \Magento\Framework\Model\AbstractModel) {
40
// throw new \LogicException($className . ' doesn\'t implement \Magento\Framework\Model\AbstractModel');
41
//}
42
return
$model
;
43
}
44
}
Magento\Framework\Data\Collection
Definition:
AbstractDb.php:6
Magento\Framework\Data\Collection\EntityFactory\create
create($className, array $data=[])
Definition:
EntityFactory.php:35
Magento\Framework\Data\Collection\EntityFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
EntityFactory.php:22
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\Data\Collection\EntityFactory
Definition:
EntityFactory.php:8
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
$model
$model
Definition:
enable_catalog_product_reindex_schedule.php:9
Magento\Framework\Data\Collection\EntityFactory\$_objectManager
$_objectManager
Definition:
EntityFactory.php:15
Magento\Framework\Data\Collection\EntityFactoryInterface
Definition:
EntityFactoryInterface.php:12
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento
$className
if($currentSelectedMethod==$_code) $className
Definition:
form.phtml:31