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
Result
LayoutFactory.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\View\Result
;
8
9
use
Magento\Framework\ObjectManagerInterface
;
10
15
class
LayoutFactory
16
{
20
private
$objectManager
;
21
25
protected
$instanceName
;
26
31
public
function
__construct
(
32
ObjectManagerInterface
$objectManager
,
33
$instanceName = \
Magento
\Framework\View\Result\Layout::class
34
) {
35
$this->objectManager =
$objectManager
;
36
$this->instanceName =
$instanceName
;
37
}
38
42
public
function
create
()
43
{
45
$resultLayout = $this->objectManager->create($this->instanceName);
46
$resultLayout->addDefaultHandle();
47
return
$resultLayout;
48
}
49
}
Magento\Framework\View\LayoutFactory
Definition:
LayoutFactory.php:11
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\View\Result\LayoutFactory\__construct
__construct(ObjectManagerInterface $objectManager, $instanceName=\Magento\Framework\View\Result\Layout::class)
Definition:
LayoutFactory.php:31
Magento\Framework\View\LayoutFactory\create
create(array $data=[])
Definition:
LayoutFactory.php:48
Magento\Framework\View\Result
Definition:
Layout.php:7
Magento
Magento\Framework\View\Result\LayoutFactory\$instanceName
$instanceName
Definition:
LayoutFactory.php:25