43 FileFactory $fileFactory,
47 $this->fileFactory = $fileFactory;
48 $this->subDir = $subDir ? $subDir .
'/' :
'';
61 $sharedFiles = $this->componentDirSearch->collectFilesWithContext(
62 ComponentRegistrar::MODULE,
63 "view/base/{$this->subDir}{$filePath}" 65 foreach ($sharedFiles as $file) {
66 $result[] = $this->fileFactory->create($file->getFullPath(), $file->getComponentName(),
null,
true);
68 $area =
$theme->getData(
'area');
69 $themeFiles = $this->componentDirSearch->collectFilesWithContext(
70 ComponentRegistrar::MODULE,
71 "view/{$area}/{$this->subDir}{$filePath}" 73 foreach ($themeFiles as $file) {
74 $result[] = $this->fileFactory->create($file->getFullPath(), $file->getComponentName());
__construct(DirSearch $dirSearch, FileFactory $fileFactory, $subDir='')
getFiles(ThemeInterface $theme, $filePath)