CodeExplorer setListing example
$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);
} private function getNavigationId(Request
$request, SalesChannelContext
$salesChannelContext): string
{ if ($navigationId =
$request->
get('navigationId'
)) { return $navigationId;
} $params =
$request->attributes->
get('_route_params'
);
if ($params &&
isset($params['navigationId'
])) {