80 if (empty($filePath)) {
81 throw new \InvalidArgumentException(
'File path must be specified');
84 if ($this->libDirectory->isExist($filePath)) {
85 $filename = $this->libDirectory->getAbsolutePath($filePath);
86 $files[] = $this->fileFactory->create($filename);
91 foreach (
$theme->getInheritedThemes() as $currentTheme) {
92 $files = array_merge(
$files, $this->themeModularFiles->getFiles($currentTheme, $filePath));
93 $files = array_merge(
$files, $this->themeFiles->getFiles($currentTheme, $filePath));
getFiles(ThemeInterface $theme, $filePath)
__construct(\Magento\Framework\Filesystem $filesystem, \Magento\Framework\View\File\Factory $fileFactory, CollectorInterface $baseFiles, CollectorInterface $themeFiles, CollectorInterface $themeModularFiles)
foreach($appDirs as $dir) $files