Line a 20cm flan tin with the pastry and refrigerate for 10-15 minutes.
Heat the butter in a small saucepan.
Add the onion and cook for 2-3 minutes.
Cook, then spread the onion over the pastry.
Top with the salmon.
Pour the mixture over the salmon.