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
PageFactory.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\View\Result
;
8
9
use
Magento\Framework\ObjectManagerInterface
;
10
19
class
PageFactory
20
{
24
private
$objectManager;
25
29
protected
$instanceName
;
30
35
public
function
__construct
(
36
ObjectManagerInterface
$objectManager,
37
$instanceName
= \
Magento
\Framework\View\Result\Page::class
38
) {
39
$this->objectManager =
$objectManager
;
40
$this->instanceName =
$instanceName
;
41
}
42
53
public
function
create($isView =
false
, array
$arguments
= [])
54
{
56
$page
= $this->objectManager->create($this->instanceName,
$arguments
);
57
// TODO Temporary solution for compatibility with View object. Will be deleted in MAGETWO-28359
58
if
(!$isView) {
59
$page
->addDefaultHandle();
60
}
61
return
$page
;
62
}
63
}
Magento\Framework\View\Result\PageFactory\__construct
__construct(ObjectManagerInterface $objectManager, $instanceName=\Magento\Framework\View\Result\Page::class)
Definition:
PageFactory.php:35
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\View\Result\PageFactory\$instanceName
$instanceName
Definition:
PageFactory.php:29
Magento\Framework\View\Result\PageFactory
Definition:
PageFactory.php:19
$page
$page
Definition:
pages.php:8
Magento\Framework\View\Result
Definition:
Layout.php:7
Magento
$arguments
$arguments
Definition:
final_price.phtml:24