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
Asset
File
FallbackContext.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\View\Asset\File
;
8
9
use
Magento\Framework\App\Filesystem\DirectoryList
;
10
17
class
FallbackContext
extends
Context
18
{
22
private
$area;
23
27
private
$theme;
28
32
private
$locale;
33
40
public
function
__construct
($baseUrl, $areaType, $themePath, $localeCode)
41
{
42
$this->area = $areaType;
43
$this->theme = $themePath;
44
$this->locale = $localeCode;
45
parent::__construct($baseUrl,
DirectoryList::STATIC_VIEW
, $this->generatePath());
46
}
47
53
public
function
getAreaCode
()
54
{
55
return
$this->area;
56
}
57
63
public
function
getThemePath
()
64
{
65
return
$this->theme;
66
}
67
73
public
function
getLocale
()
74
{
75
return
$this->locale;
76
}
77
83
private
function
generatePath()
84
{
85
return
$this->area .
86
($this->theme ?
'/'
. $this->theme :
''
) .
87
($this->locale ?
'/'
. $this->locale :
''
);
88
}
89
95
public
function
getConfigPath
()
96
{
97
return
$this->
getPath
();
98
}
99
}
Magento\Framework\App\Filesystem\DirectoryList\STATIC_VIEW
const STATIC_VIEW
Definition:
DirectoryList.php:53
Magento\Framework\View\Asset\File\Context\getPath
getPath()
Definition:
Context.php:46
Magento\Framework\View\Asset\File\FallbackContext
Definition:
FallbackContext.php:17
Magento\Framework\View\Asset\File\FallbackContext\getConfigPath
getConfigPath()
Definition:
FallbackContext.php:95
Magento\Framework\View\Asset\File\FallbackContext\getLocale
getLocale()
Definition:
FallbackContext.php:73
Magento\Framework\App\Filesystem\DirectoryList
Definition:
DirectoryList.php:13
Magento\Framework\View\Asset\File\FallbackContext\getAreaCode
getAreaCode()
Definition:
FallbackContext.php:53
Magento\Framework\View\Asset\File
Definition:
Context.php:7
Magento\Framework\View\Asset\File\Context
Definition:
Context.php:14
Magento\Framework\View\Asset\File\FallbackContext\getThemePath
getThemePath()
Definition:
FallbackContext.php:63
Magento\Framework\View\Asset\File\FallbackContext\__construct
__construct($baseUrl, $areaType, $themePath, $localeCode)
Definition:
FallbackContext.php:40