getNavigationCategoryDepth example

throw RoutingException::missingRequestParameter('navigationId');
        }

        $languages = $this->getLanguages($context$request);
        $event = new CurrencyRouteRequestEvent($requestnew Request()$context);
        $this->eventDispatcher->dispatch($event);

        $navigation = $this->navigationLoader->load(
            (string) $navigationId,
            $context,
            $salesChannel->getNavigationCategoryId(),
            $salesChannel->getNavigationCategoryDepth()
        );

        $criteria = new Criteria();
        $criteria->setTitle('header::currencies');

        $currencies = $this->currencyRoute
            ->load($event->getStoreApiRequest()$context$criteria)
            ->getCurrencies();

        $contextLanguage = $languages->get($context->getContext()->getLanguageId());
        if (!$contextLanguage) {
            
Home | Imprint | This part of the site doesn't use cookies.