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
Tree
NodeFactory.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Data\Tree
;
8
9
use
Magento\Framework\ObjectManagerInterface
;
10
14
class
NodeFactory
15
{
21
protected
$objectManager
;
22
28
protected
$instanceName
;
29
36
public
function
__construct
(
37
ObjectManagerInterface
$objectManager
,
38
$instanceName
= \
Magento
\Framework\Data\
Tree
\Node::class
39
) {
40
$this->objectManager =
$objectManager
;
41
$this->instanceName =
$instanceName
;
42
}
43
50
public
function
create
(array
$data
= [])
51
{
52
return
$this->objectManager->create($this->instanceName,
$data
);
53
}
54
}
Magento\Framework\Data\Tree\NodeFactory
Definition:
NodeFactory.php:14
Magento\Framework\Data\Tree\NodeFactory\$instanceName
$instanceName
Definition:
NodeFactory.php:28
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\Data\Tree\NodeFactory\$objectManager
$objectManager
Definition:
NodeFactory.php:21
Magento\Framework\Data\Tree
Definition:
Tree.php:18
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\Data\Tree\NodeFactory\create
create(array $data=[])
Definition:
NodeFactory.php:50
Magento
Magento\Framework\Data\Tree\NodeFactory\__construct
__construct(ObjectManagerInterface $objectManager, $instanceName=\Magento\Framework\Data\Tree\Node::class)
Definition:
NodeFactory.php:36
Magento\Framework\Data\Tree
Definition:
Db.php:6