loadRecursiveConfig example

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

        return $pluginConfig;
    }

    /** * @return array<string, mixed> */
    private function loadCompileConfig(string $themeId, Context $context): array
    {
        $config = $this->loadRecursiveConfig($themeId$context);

        $field = new ThemeConfigField();

        foreach ($config['fields'] as $name => $item) {
            $clone = clone $field;
            $clone->setName($name);
            $clone->assign($item);
            $config[$name] = $clone;
        }

        return json_decode((string) json_encode($config, \JSON_THROW_ON_ERROR), true, 512, \JSON_THROW_ON_ERROR);
    }
Home | Imprint | This part of the site doesn't use cookies.