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
module-theme
Model
Theme
FileProvider.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Theme\Model\Theme
;
7
8
class
FileProvider
implements
\Magento\Framework\View\Design\Theme\FileProviderInterface
9
{
13
protected
$fileFactory
;
14
18
public
function
__construct
(\
Magento
\
Theme
\Model\
ResourceModel
\
Theme
\
File
\CollectionFactory
$fileFactory
)
19
{
20
$this->fileFactory =
$fileFactory
;
21
}
22
26
public
function
getItems
(\
Magento
\Framework\View\
Design
\
ThemeInterface
$theme
, array
$filters
= [])
27
{
29
$themeFiles = $this->fileFactory->create();
30
$themeFiles->addThemeFilter(
$theme
);
31
foreach
(
$filters
as $field =>
$value
) {
32
$themeFiles->addFieldToFilter($field,
$value
);
33
}
34
$themeFiles->setDefaultOrder();
35
return
$themeFiles->getItems();
36
}
37
}
Magento\Theme\Model\Theme
Definition:
Theme.php:36
Magento\Theme\Model\Design
Definition:
Design.php:27
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
Magento\Framework\View\Design\ThemeInterface
Definition:
ThemeInterface.php:14
Magento\Theme\Model\Theme\FileProvider\__construct
__construct(\Magento\Theme\Model\ResourceModel\Theme\File\CollectionFactory $fileFactory)
Definition:
FileProvider.php:18
$value
$value
Definition:
gender.phtml:16
Magento\Theme\Model\Theme
Definition:
CollectionTest.php:10
Magento\Theme\Model\Theme\FileProvider
Definition:
FileProvider.php:8
Magento\Framework\View\Design\Theme\FileProviderInterface
Definition:
FileProviderInterface.php:14
Magento
$theme
$theme
Definition:
theme_rollback.php:9
$filters
$filters
Definition:
uploader.phtml:11
Magento\Theme\Model\Theme\File
Definition:
File.php:15
Magento\Theme\Model\Theme\FileProvider\$fileFactory
$fileFactory
Definition:
FileProvider.php:13
Magento\Framework\View\Design\Theme\FileProviderInterface\getItems
getItems(\Magento\Framework\View\Design\ThemeInterface $theme, array $filters=[])