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
Theme
ThemeProvider.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\View\Design\Theme
;
7
8
use
Magento\Framework\View\Design\ThemeFactory
;
9
use
Magento\Framework\View\Design\ThemeInterface
;
10
14
class
ThemeProvider
implements
\Magento\Framework\View\Design\Theme\ThemeProviderInterface
15
{
19
private
$themeList;
20
24
protected
$themeFactory
;
25
29
private
$themes;
30
37
public
function
__construct
(
38
ListInterface
$themeList,
39
ThemeFactory
$themeFactory
40
) {
41
$this->themeList =
$themeList
;
42
$this->themeFactory =
$themeFactory
;
43
}
44
48
public
function
getThemeByFullPath
($fullPath)
49
{
50
if
(!isset($this->themes[$fullPath])) {
51
$this->themes[$fullPath] = $this->themeList->getThemeByFullPath($fullPath);
52
}
53
return
$this->themes[$fullPath];
54
}
55
60
public
function
getThemeCustomizations
(
61
$area = \
Magento
\Framework\
App
\Area::AREA_FRONTEND,
62
$type
= \
Magento
\Framework\View\Design\
ThemeInterface::TYPE_VIRTUAL
63
) {
64
return
[];
65
}
66
70
public
function
getThemeById
($themeId)
71
{
72
return
$this->themeFactory->getTheme($themeId);
73
}
74
}
Magento\Framework\App
Magento\Framework\View\Design\Theme\ThemeProvider\getThemeCustomizations
getThemeCustomizations( $area=\Magento\Framework\App\Area::AREA_FRONTEND, $type=\Magento\Framework\View\Design\ThemeInterface::TYPE_VIRTUAL)
Definition:
ThemeProvider.php:60
Magento\Framework\View\Design\Theme\ThemeProvider
Definition:
ThemeProvider.php:14
Magento\Framework\View\Design\ThemeInterface
Definition:
ThemeInterface.php:14
Magento\Framework\View\Design\Theme\ThemeProvider\getThemeById
getThemeById($themeId)
Definition:
ThemeProvider.php:70
$type
$type
Definition:
item.phtml:13
Magento\Framework\View\Design\ThemeFactory
Definition:
ThemeFactory.php:15
Magento\Framework\View\Design\ThemeInterface\TYPE_VIRTUAL
const TYPE_VIRTUAL
Definition:
ThemeInterface.php:34
Magento\Framework\View\Design\Theme\ListInterface
Definition:
ListInterface.php:14
Magento\Framework\View\Design\Theme
Magento\Framework\View\Design\Theme\ThemeProvider\getThemeByFullPath
getThemeByFullPath($fullPath)
Definition:
ThemeProvider.php:48
$themeList
$themeList
Definition:
config_data.php:15
Magento
Magento\Framework\View\Design\Theme\ThemeProvider\__construct
__construct(ListInterface $themeList, ThemeFactory $themeFactory)
Definition:
ThemeProvider.php:37
Magento\Framework\View\Design\Theme\ThemeProvider\$themeFactory
$themeFactory
Definition:
ThemeProvider.php:24
Magento\Framework\View\Design\Theme\ThemeProviderInterface
Definition:
ThemeProviderInterface.php:11