// Before the inheritance can be built, the plugin themes have to be initialized.
$pluginThemes =
$this->
synchronizePluginThemes();
$themes =
array_merge($themes,
$pluginThemes);
// Builds the theme inheritance
$this->
setParents($themes);
/** @var Theme $theme */
foreach ($themes as $theme) { $this->configurator->
synchronize($theme);
} } /**
* Helper function which iterates the engine\Shopware\Themes directory
* and registers all stored themes within the directory as \Shopware\Models\Shop\Template.
*
* @throws \Doctrine\ORM\OptimisticLockException
* @throws \Doctrine\ORM\ORMInvalidArgumentException
*
* @return Theme[]
*/