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
File
Factory.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\View\File
;
8
9
use
Magento\Framework\ObjectManagerInterface
;
10
use
Magento\Framework\View\Design\ThemeInterface
;
11
15
class
Factory
16
{
22
private
$objectManager;
23
29
public
function
__construct
(
ObjectManagerInterface
$objectManager)
30
{
31
$this->objectManager =
$objectManager
;
32
}
33
43
public
function
create
(
$filename
,
$module
=
''
,
ThemeInterface
$theme
=
null
,
$isBase
=
false
)
44
{
45
return
$this->objectManager->create(
46
\
Magento
\Framework\View\File::class,
47
[
'filename'
=>
$filename
,
'module'
=>
$module
,
'theme'
=>
$theme
,
'isBase'
=>
$isBase
]
48
);
49
}
50
}
Magento\Framework\View\File\$theme
$theme
Definition:
File.php:35
Magento\Framework\View\File\Factory\create
create($filename, $module='', ThemeInterface $theme=null, $isBase=false)
Definition:
Factory.php:43
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\View\File\$filename
$filename
Definition:
File.php:21
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\View\File\$module
$module
Definition:
File.php:28
Magento\Framework\View\Design\ThemeInterface
Definition:
ThemeInterface.php:14
Magento\Framework\View\File\Factory
Definition:
Factory.php:15
Magento\Framework\View\File
Magento\Framework\View\File\$isBase
$isBase
Definition:
File.php:42
Magento
Magento\Framework\View\File\Factory\__construct
__construct(ObjectManagerInterface $objectManager)
Definition:
Factory.php:29