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
Layout
ReaderFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\View\Layout
;
7
11
class
ReaderFactory
12
{
16
protected
$objectManager
;
17
21
public
function
__construct
(\
Magento
\Framework\
ObjectManagerInterface
$objectManager
)
22
{
23
$this->objectManager =
$objectManager
;
24
}
25
34
public
function
create
(
$className
, array
$data
= [])
35
{
36
$reader = $this->objectManager->create(
$className
,
$data
);
37
if
(!$reader instanceof \
Magento
\Framework\
View
\
Layout
\
ReaderInterface
) {
38
throw
new \InvalidArgumentException(
39
$className
.
' doesn\'t implement \Magento\Framework\View\Layout\ReaderInterface'
40
);
41
}
42
return
$reader;
43
}
44
}
Magento\Framework\View\Layout\ReaderFactory\create
create($className, array $data=[])
Definition:
ReaderFactory.php:34
Magento\Framework\View\Layout\ReaderFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
Definition:
ReaderFactory.php:21
Magento\Framework\View\Layout
Definition:
AclCondition.php:6
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\View\Layout
Definition:
Layout.php:28
Magento\Framework\View\Layout\ReaderInterface
Definition:
ReaderInterface.php:12
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\View\Layout\ReaderFactory
Definition:
ReaderFactory.php:11
Magento\Framework\View\Layout\ReaderFactory\$objectManager
$objectManager
Definition:
ReaderFactory.php:16
Magento
Magento\Framework\App\View
Definition:
View.php:8
$className
if($currentSelectedMethod==$_code) $className
Definition:
form.phtml:31