Throw a Wet Blanket on (Something)

What does the idiom “Throw a Wet Blanket on (Something)” mean?

Definition:

Discourage plans for something

For example:

“Barbara threw a wet blanket on our plans for a party, reminding us that no alcohol is allowed in the building.”