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-widget
Model
Widget
Instance
OptionsFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Widget\Model\Widget\Instance
;
7
8
class
OptionsFactory
9
{
13
protected
$_objectManager
;
14
18
public
function
__construct
(\
Magento
\Framework\ObjectManagerInterface
$objectManager
)
19
{
20
$this->_objectManager =
$objectManager
;
21
}
22
30
public
function
create
(
$type
, array
$data
= [])
31
{
32
return
$this->_objectManager->create(
$type
,
$data
);
33
}
34
}
Magento\Widget\Model\Widget\Instance\OptionsFactory\$_objectManager
$_objectManager
Definition:
OptionsFactory.php:13
Magento\Widget\Model\Widget\Instance\OptionsFactory\create
create($type, array $data=[])
Definition:
OptionsFactory.php:30
Magento\Widget\Model\Widget\Instance
Definition:
OptionsFactory.php:6
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Widget\Model\Widget\Instance\OptionsFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
OptionsFactory.php:18
$type
$type
Definition:
item.phtml:13
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento
Magento\Widget\Model\Widget\Instance\OptionsFactory
Definition:
OptionsFactory.php:8