who applies for my maternity pay

Bl

Im in the uk. Does my employer sorts out all the maternity pay stuff? I’m just a bit unsure because I could do it through the gov website. Do I just need to tell them when I want to start my leave and they will sort everything out?