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-config
Model
Config
BackendFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Config\Model\Config
;
7
12
class
BackendFactory
13
{
19
protected
$_objectManager
;
20
24
public
function
__construct
(\
Magento
\Framework\ObjectManagerInterface $objectmanager)
25
{
26
$this->_objectManager = $objectmanager;
27
}
28
37
public
function
create
($modelName, array
$arguments
= [])
38
{
39
$model
= $this->_objectManager->create($modelName,
$arguments
);
40
if
(!
$model
instanceof \
Magento
\Framework\
App
\
Config
\
ValueInterface
) {
41
throw
new \InvalidArgumentException(
'Invalid config field backend model: '
. $modelName);
42
}
43
return
$model
;
44
}
45
}
Magento\Config\Model\Config\BackendFactory\create
create($modelName, array $arguments=[])
Definition:
BackendFactory.php:37
Magento\Framework\App
Magento\Framework\App\Config\ValueInterface
Definition:
ValueInterface.php:17
Magento\Config\Model\Config\BackendFactory\$_objectManager
$_objectManager
Definition:
BackendFactory.php:19
$model
$model
Definition:
enable_catalog_product_reindex_schedule.php:9
Magento
$arguments
$arguments
Definition:
final_price.phtml:24
Magento\Config\Model\Config\BackendFactory
Definition:
BackendFactory.php:12
Magento\Config\Model\Config
Magento\Framework\App\Config
Definition:
Config.php:17
Magento\Config\Model\Config\BackendFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectmanager)
Definition:
BackendFactory.php:24