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-backend
Model
Menu
Item
Factory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Backend\Model\Menu\Item
;
7
12
class
Factory
13
{
17
protected
$_objectManager
;
18
22
public
function
__construct
(\
Magento
\Framework\
ObjectManagerInterface
$objectManager
)
23
{
24
$this->_objectManager =
$objectManager
;
25
}
26
33
public
function
create
(array
$data
= [])
34
{
35
return
$this->_objectManager->create(\
Magento
\Backend\Model\
Menu
\Item::class, [
'data'
=>
$data
]);
36
}
37
}
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Backend\Model\Menu\Item\Factory\$_objectManager
$_objectManager
Definition:
Factory.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Backend\Model\Menu
Definition:
Menu.php:20
Magento\Backend\Model\Menu\Item\Factory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
Factory.php:22
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Backend\Model\Menu\Item\Factory\create
create(array $data=[])
Definition:
Factory.php:33
Magento
Magento\Backend\Model\Menu\Item\Factory
Definition:
Factory.php:12
Magento\Backend\Model\Menu\Item
Definition:
Factory.php:6