/** * @return array */ protected function getConfigFiles() { $configFiles = []; foreach ($this->themeCollection->loadRegisteredThemes() as $theme) { $configFiles = array_merge($configFiles, $this->fileCollector->getFilesContent($theme, 'layouts.xml')); } return $configFiles; }
/** * Retrieve view configuration data * * Collect data for 'Magento_Catalog' module from /etc/view.xml files. * * @return array */ protected function getData() { if (!$this->data) { foreach ($this->themeCollection->loadRegisteredThemes() as $theme) { $config = $this->viewConfig->getViewConfig(['area' => Area::AREA_FRONTEND, 'themeModel' => $theme]); $this->data = array_merge($this->data, $this->applyFilters($config->getVars('Magento_Catalog'))); } } return $this->data; }