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
Collector
Decorator
ModuleOutput.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\View\File\Collector\Decorator
;
8
9
use
Magento\Framework\Module\Manager
;
10
use
Magento\Framework\View\Design\ThemeInterface
;
11
use
Magento\Framework\View\File
;
12
use
Magento\Framework\View\File\CollectorInterface
;
13
17
class
ModuleOutput
implements
CollectorInterface
18
{
24
private
$subject;
25
31
private
$moduleManager;
32
39
public
function
__construct
(
40
CollectorInterface
$subject,
41
Manager
$moduleManager
42
) {
43
$this->subject = $subject;
44
$this->moduleManager =
$moduleManager
;
45
}
46
56
public
function
getFiles
(
ThemeInterface
$theme
, $filePath)
57
{
58
$result
= [];
59
foreach
($this->subject->getFiles(
$theme
, $filePath) as $file) {
60
if
($this->moduleManager->isOutputEnabled($file->getModule())) {
61
$result
[] = $file;
62
}
63
}
64
return
$result
;
65
}
66
}
Magento\Framework\View\File\$theme
$theme
Definition:
File.php:35
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Framework\View\File\CollectorInterface
Definition:
CollectorInterface.php:16
Magento\Framework\View\File\Collector\Decorator\ModuleOutput
Definition:
ModuleOutput.php:17
Magento\Framework\View\Design\ThemeInterface
Definition:
ThemeInterface.php:14
Magento\Framework\View\File\Collector\Decorator\ModuleOutput\getFiles
getFiles(ThemeInterface $theme, $filePath)
Definition:
ModuleOutput.php:56
Magento\Framework\View\File
Magento\Framework\View\File\Collector\Decorator
Definition:
ModuleDependency.php:7
Magento\Framework\View\File\Collector\Decorator\ModuleOutput\__construct
__construct(CollectorInterface $subject, Manager $moduleManager)
Definition:
ModuleOutput.php:39
$moduleManager
$moduleManager
Definition:
products.php:75
Magento\Framework\Module\Manager
Definition:
Manager.php:20