A woman was taken to the hospital after her leg got stuck in the gap between an MBTA Orange Line train and the platform downtown on Friday, officials said.

“She was stepping off the train when it happened,” MBTA spokesman Joe Pesaturo said.

The incident happened at the State Street Station around 5:30 p.m., and caused eight-minute delays along the Orange Line, Pesaturo said. Service was back to normal by 6 p.m.