The habitats where purple milk vetch~(Astragalus danicus) grows:

Brownfield
Hard cliff and cliff slope
Lowland calcareous grassland
Lowland dry acid grassland
Lowland dry heath
Machair sand dune
Sand dune