The type of conditioning is: Classical conditioning.
Classical conditioning was discovered by a Russian physiologist called Pavlov. It is a way of learning through association. In other words, two stimuli are joined together to produce a new learned response in a person or animal. In this example the dog associated the green hat with going out for a walk that is why when it saw the hat it knew they were going outside.