Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
removeByKey example
$response
=
$this
->
getDecorated
(
)
->
load
(
$categoryId
,
$request
,
$context
,
$criteria
)
;
$response
->
getResult
(
)
->
addCurrentFilter
(
'navigationId',
$categoryId
)
;
$this
->processor->
process
(
$request
,
$response
->
getResult
(
)
,
$context
)
;
$this
->eventDispatcher->
dispatch
(
new
ProductListingResultEvent
(
$request
,
$response
->
getResult
(
)
,
$context
)
)
;
$response
->
getResult
(
)
->
getAvailableSortings
(
)
->
removeByKey
(
ResolvedCriteriaProductSearchRoute::DEFAULT_SEARCH_SORT
)
;
return
$response
;
}
}