getMenuData example

'installer.finish' => 'finish',
    ];

    /** * @param array<string, mixed> $parameters */
    protected function renderInstaller(string $view, array $parameters = []): Response
    {
        $request = $this->container->get('request_stack')->getCurrentRequest();

        if ($request !== null) {
            $parameters['menu'] = $this->getMenuData($request);
        }

        /** @var ContainerInterface $container */
        $container = $this->container;

        if (!\array_key_exists('supportedLanguages', $parameters)) {
            /** @var array<string, string> $languages */
            $languages = $container->getParameter('shopware.installer.supportedLanguages');
            $parameters['supportedLanguages'] = array_keys($languages);
        }
        $parameters['shopware']['version'] = $container->getParameter('kernel.shopware_version');

        
Home | Imprint | This part of the site doesn't use cookies.