public function load(string
$countryId, Request
$request, Criteria
$criteria, SalesChannelContext
$context): CountryStateRouteResponse
{ $criteria->
addFilter( new EqualsFilter('countryId',
$countryId),
new EqualsFilter('active', true
) );
$criteria->
addSorting(new FieldSorting('position', FieldSorting::ASCENDING, true
));
$criteria->
addSorting(new FieldSorting('name', FieldSorting::ASCENDING
));
$countryStates =
$this->countryStateRepository->
search($criteria,
$context->
getContext());
return new CountryStateRouteResponse($countryStates);
} protected function getDecorated(): AbstractCountryStateRoute
{ throw new DecorationPatternException(self::
class);
}}