Preheat a nonstick pan over medium heat with some olive oil.
When the pan is hot add the yellow onion and fry for 2-3 minutes, until the onion starts to get slightly browned and softened.
Add the minced garlic, stir together with the onion. Fry for 1-2 minutes.
Add the tomato paste, stir together with the rest and let it fry for 1-2 minutes.
Pour in the canned tomatoes, vegetable stock cube and dried herbs. Stir together and let the sauce simmer on low heat while you prepare the halloumi.
Preheat the oven or air fryer to 175 degrees Celsius.
Slice the halloumi block into equally thick pieces. Path dry using a paper towel.
Whisk the egg in a bowl. Stir together polenta, paprika powder and cayenne pepper in a separate bowl. Make sure the bowls are wide enough to fit the halloumi slices lying down.
Coat each halloumi slice with eggs followed by polenta. Make sure all parts are well covered with both egg and polenta.
Place on a parchment covered baking sheet, brush the slices gently with olive oil using a bastring brush and bake for 8-12 minutes in the air fryer or 18-22 minutes in the oven, flipping them halfway through. Keep an eye on them to make sure they don't burn.
While the halloumi cooles slightly place the tomato sauce at the bottom of two plates. Top with the crusted polenta, roughly copped almonads and basil.
Serve while warm!