The answer depends entirely on which kind of hedgehog you mean.
These must never be allowed to hibernate. It is a sign the animal is too cold, and it can easily be fatal. If your pet becomes cool and sluggish, warm it gradually and seek veterinary advice.
Wild hogs build a nest called a hibernaculum, tucked into a hole, under a shed, or in a purpose-made hedgehog house. It is packed with dry leaves, hay, straw and whatever else they can carry — sweet wrappers have turned up in some.
Timing varies with the animal's size, the weather and the food supply. Before sleeping, a hog needs to build up its brown fat reserves, and it will lose roughly a third of its body weight over the winter. If those reserves run out, it wakes and goes looking for food; if the ground is frozen and there is nothing to find, it starves.
A particular issue in Europe is hogs born too late in the year to reach a viable weight. Litters have been found as late as Christmas, and none of those would survive unaided. The recommended hibernation weight is around 600 grams — below that, a hog needs to be taken in and overwintered, then released in April or May.
The easiest way to help is to leave cat or dog food and fresh water out all year, so local hogs know where to come when times get hard.