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.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\View
;
8
9
use
Magento\Framework\View\Design\ThemeInterface
;
10
14
class
File
15
{
21
protected
$filename
;
22
28
protected
$module
;
29
35
protected
$theme
;
36
42
protected
$isBase
;
43
49
protected
$identifier
;
50
59
public
function
__construct
(
$filename
,
$module
,
ThemeInterface
$theme
=
null
,
$isBase
=
false
)
60
{
61
$this->filename =
$filename
;
62
$this->module =
$module
;
63
$this->theme =
$theme
;
64
$this->
isBase
=
$isBase
;
65
}
66
72
public
function
getFilename
()
73
{
74
return
$this->filename
;
75
}
76
82
public
function
getName
()
83
{
84
return
basename($this->filename);
85
}
86
92
public
function
getModule
()
93
{
94
return
$this->module
;
95
}
96
102
public
function
getTheme
()
103
{
104
return
$this->theme
;
105
}
106
112
public
function
isBase
()
113
{
114
return
$this->theme ===
null
;
115
}
116
122
public
function
getFileIdentifier
()
123
{
124
if
(
null
=== $this->identifier) {
125
$theme
= $this->
getTheme
() ? (
'|theme:'
. $this->theme->getFullPath()) :
''
;
126
$this->identifier = ($this->
isBase
?
'base'
:
''
)
127
.
$theme
.
'|module:'
. $this->
getModule
() .
'|file:'
. $this->
getName
();
128
}
129
return
$this->identifier
;
130
}
131
}
Magento\Framework\View\File\$theme
$theme
Definition:
File.php:35
Magento\Framework\View\File\$filename
$filename
Definition:
File.php:21
Magento\Framework\View\File\$module
$module
Definition:
File.php:28
Magento\Framework\View\File\getFilename
getFilename()
Definition:
File.php:72
Magento\Framework\View\File\getModule
getModule()
Definition:
File.php:92
Magento\Framework\View\Design\ThemeInterface
Definition:
ThemeInterface.php:14
Magento\Framework\View\File\getFileIdentifier
getFileIdentifier()
Definition:
File.php:122
Magento\Framework\View\File\__construct
__construct($filename, $module, ThemeInterface $theme=null, $isBase=false)
Definition:
File.php:59
Magento\Framework\View\File\$isBase
$isBase
Definition:
File.php:42
Magento\Framework\View\File\getTheme
getTheme()
Definition:
File.php:102
Magento\Framework\View\File\isBase
isBase()
Definition:
File.php:112
Magento\Framework\View\File\getName
getName()
Definition:
File.php:82
Magento\Framework\View\File\$identifier
$identifier
Definition:
File.php:49
Magento\Framework\View\File
Definition:
File.php:14
Magento\Framework\View