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;
    }
}
Home | Imprint | This part of the site doesn't use cookies.