user
What is the grammatical function of the underlined phrase?

She visited Germany last summer.


assistant
The underlined phrase ("last summer") is an adverbial phrase that is providing additional information about when she visited Germany.