loadCompileConfig example

public function load(string $themeId, Context $context): StorefrontPluginConfiguration
    {
        $pluginConfig = $this->loadConfigByName($themeId$context);

        if (!$pluginConfig) {
            throw new InvalidThemeException($themeId);
        }

        $pluginConfig = clone $pluginConfig;

        $config = $this->loadCompileConfig($themeId$context);

        $pluginConfig->setThemeConfig($config);

        $this->resolveMediaIds($pluginConfig$context);

        return $pluginConfig;
    }

    /** * @return array<string, mixed> */
    
Home | Imprint | This part of the site doesn't use cookies.