Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getNavigationCategoryDepth example
throw
RoutingException::
missingRequestParameter
(
'navigationId'
)
;
}
$languages
=
$this
->
getLanguages
(
$context
,
$request
)
;
$event
=
new
CurrencyRouteRequestEvent
(
$request
,
new
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
)
{