new EqualsFilter('availabilityRuleId', null
),
new EqualsAnyFilter('availabilityRuleId',
$context->
getRuleIds()),
]),
]) );
/** @var TaxProviderCollection $providers */
$providers =
$this->taxProviderRepository->
search($criteria,
$context->
getContext())->
getEntities();
// we can safely sort the providers in php, as we do not expect more than a couple of providers
// otherwise we would need to sort them in the database with an index many fields to be performant
$providers->
sortByPriority();
return $providers;
} private function buildTaxes( TaxProviderCollection
$providers,
Cart
$cart,
SalesChannelContext
$context,
TaxProviderExceptions
$exceptions,
): ?TaxProviderResult
{ /** @var TaxProviderEntity $providerEntity */