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
Design
FileResolution
Fallback
StaticFile.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\View\Design\FileResolution\Fallback
;
8
9
use
Magento\Framework\View\Design\ThemeInterface
;
10
14
class
StaticFile
15
{
19
private
$resolver;
20
26
public
function
__construct
(
ResolverInterface
$resolver)
27
{
28
$this->resolver = $resolver;
29
}
30
41
public
function
getFile
($area,
ThemeInterface
$themeModel, $locale, $file, $module =
null
)
42
{
43
return
$this->resolver->resolve($this->
getFallbackType
(), $file, $area, $themeModel, $locale, $module);
44
}
45
49
protected
function
getFallbackType
()
50
{
51
return \Magento\Framework\View\Design\Fallback\RulePool::TYPE_STATIC_FILE;
52
}
53
}
Magento\Framework\View\Design\FileResolution\Fallback\StaticFile\getFile
getFile($area, ThemeInterface $themeModel, $locale, $file, $module=null)
Definition:
StaticFile.php:41
Magento\Framework\View\Design\FileResolution\Fallback\StaticFile
Definition:
StaticFile.php:14
Magento\Framework\View\Design\ThemeInterface
Definition:
ThemeInterface.php:14
Magento\Framework\View\Design\FileResolution\Fallback
Definition:
EmailTemplateFile.php:7
Magento\Framework\View\Design\FileResolution\Fallback\StaticFile\getFallbackType
getFallbackType()
Definition:
StaticFile.php:49
Magento\Framework\View\Design\FileResolution\Fallback\ResolverInterface
Definition:
ResolverInterface.php:15
Magento\Framework\View\Design\FileResolution\Fallback\StaticFile\__construct
__construct(ResolverInterface $resolver)
Definition:
StaticFile.php:26