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
View
Element
UiComponent
ContextFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\View\Element\UiComponent
;
7
8
use
Magento\Framework\ObjectManagerInterface
;
9
13
class
ContextFactory
14
{
15
const
INSTANCE_NAME
= \Magento\Framework\View\Element\UiComponent\ContextInterface::class;
16
20
protected
$objectManager
;
21
27
public
function
__construct
(
ObjectManagerInterface
$objectManager
)
28
{
29
$this->objectManager =
$objectManager
;
30
}
31
38
public
function
create
(array
$arguments
= [])
39
{
40
return
$this->objectManager->create(static::INSTANCE_NAME,
$arguments
);
41
}
42
}
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\View\Element\UiComponent\ContextFactory
Definition:
ContextFactory.php:13
Magento\Framework\View\Element\UiComponent\ContextFactory\INSTANCE_NAME
const INSTANCE_NAME
Definition:
ContextFactory.php:15
Magento\Framework\View\Element\UiComponent\ContextFactory\$objectManager
$objectManager
Definition:
ContextFactory.php:20
Magento\Framework\View\Element\UiComponent\ContextFactory\create
create(array $arguments=[])
Definition:
ContextFactory.php:38
$arguments
$arguments
Definition:
final_price.phtml:24
Magento\Framework\View\Element\UiComponent
Magento\Framework\View\Element\UiComponent\ContextFactory\__construct
__construct(ObjectManagerInterface $objectManager)
Definition:
ContextFactory.php:27