Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getNavigationId example
$request
=
$resolverContext
->
getRequest
(
)
;
$context
=
$resolverContext
->
getSalesChannelContext
(
)
;
$this
->
restrictFilters
(
$slot
,
$request
)
;
if
(
$this
->
isCustomSorting
(
$slot
)
)
{
$this
->
restrictSortings
(
$request
,
$slot
)
;
$this
->
addDefaultSorting
(
$request
,
$slot
)
;
}
$navigationId
=
$this
->
getNavigationId
(
$request
,
$context
)
;
$criteria
=
new
Criteria
(
)
;
$criteria
->
setTitle
(
'cms::product-listing'
)
;
$listing
=
$this
->listingRoute
->
load
(
$navigationId
,
$request
,
$context
,
$criteria
)
->
getResult
(
)
;
$data
->
setListing
(
$listing
)
;
}