protected function getTaxTypes() { $taxTypes = $this->taxTypeRepository->getAll(); $taxTypes = array_filter($taxTypes, function ($taxType) { // "eu_ic_vat" is not resolved via its zone, so it isn't needed. return $taxType->getId() != 'eu_ic_vat' && $taxType->getTag() == 'EU'; }); return $taxTypes; }