Tomato and ricotta tart

This crowd-pleasing vegetarian tart recipe uses shop bought all-butter puff pastry making it quick and easy to put together.
15g butter
2 onions, sliced
2 garlic cloves, crushed
230g ready-rolled all-butter puff pastry
100g ricotta
300g cherry tomatoes, halved
Extra-virgin olive oil for drizzling
A few fresh thyme sprigs, leaves picked