Tarta Jamón y Queso FUGAZZETTA .!!!

We're making a ham and cheese tart, but this time I'm making it fugazzetta-style to give it a tastier touch! Tart dough (I use a criolla or puff pastry type) 1 kilo of onions (amount to taste) 2 cloves of garlic 2 hard-boiled eggs