Was it something he said?

Ricky Gervais, the acerbic British comic behind “The Office,” “Derek,” “Extras” and three outrageously sharp-tongued stints hosting the Golden Globe Awards, has been the stuff of controversy ever since his return to Sunday’s ceremony was announced in October.

And while insult comedy and celebrity roasts have long been commonplace, society in the four years since he last hosted seems, contradictorily, more easily offended by comedians and more tolerant of outrageous comments by others. Can Gervais still shock when simply making Cate Blanchett or Bryan Cranston jokes?

The comedian seems to anticipate so.

“Because I can see the future,” Gervais, 54, tweeted recently, “I’d like to apologise now for the things I said at next week’s Golden Globes. I was drunk & didn’t give a …”

Pal Seth MacFarlane fed the spirit of things a couple of days later, tweeting, “Social media is already pre-outraged over Ricky Gervais’ Helen Mirren joke at the Golden Globes.” To which Gervais responded, “And they should be. It’s a doozy.”

The inherent joke is, how could one offend the stately yet bawdy Dame Helen?

In fact, Gervais’ gibes, such as 2011’s “It’s going to be a night of partying and heavy drinking — or as Charlie Sheen calls it: breakfast,” aren’t half as hard-hitting as what John Oliver says on his HBO show. And Don Rickles would famously tell Frank Sinatra, “Make yourself comfortable, Frank — hit somebody.”

So perhaps it’s not so much what Gervais says but the way he says it. As Robert Downey Jr. described it, “hugely mean-spirited with mildly sinister undertones.”

The Hollywood Foreign Press Association, which bestows the awards, seems fine with that.

“They enjoy the Golden Globes’ status as a looser room than other award shows,” said Paul Telegdy, NBC’s head of late night and alternative programming. “It’s got a little bit of a maverick personality.

“It’s one of the reasons I think it’s preferred to many other award shows, whether you’re lucky enough to attend or to watch; it’s got a very different feel. That maverick status blends nicely with Ricky’s own approach to the evening.”

The show’s executive producer, Barry Adelman, said the show approached Gervais after three-time hosting duo Tina Fey and Amy Poehler chose not to return.

“You look over the landscape and think about, ‘Who is going to give the show the kind of boost that both Ricky and Tina and Amy did for six years in a row?’ We thought, ‘Why not ask Ricky again?’

“We kind of suspected he had an itch to come back. He loves it; he loves stirring the pot.”

“Ricky was always at the top of our list and our thoughts,” added Italian journalist Lorenzo Soria, president of the Hollywood Foreign Press Association. “The only debate was whether it felt like moving backward than forward. Once we talked with Ricky, we were very excited.”

He said Gervais “can make fun of people sitting in the very room. Does that make him controversial? It makes people talk about him and what he says. I think he’s a good draw for the show.”

Gervais has given fair warning that he doesn’t plan to water down his approach.

“You have the right to your opinion,” he said. “But don’t get offended when someone tells you what they think of your opinion. That’s THEIR opinion. You have the right to offend and be offended. But you don’t have the right to never be offended. The right to an opinion does not include the right to be agreed with, taken seriously or even listened to.”

Gervais said his outrageousness has been greatly exaggerated. “I think it’s a strange myth that follows me around that I’m a shock comedian,” he said.

A sampling of his greatest hits

“There were a lot of big films that didn’t get nominated. Nothing for ‘Sex and the City 2.’ I was sure the Golden Globes for special effects would go to the team that airbrushed that poster.” (2011)

“For any of you who don’t know, the Golden Globes are just like the Oscars, but without all that esteem. The Golden Globes are to the Oscars what Kim Kardashian is to Kate Middleton. A bit louder, a bit trashier, a bit drunker and more easily bought. Allegedly. Nothing’s been proved.” (2012)

“Who needs the Oscars? Not me, and not Eddie Murphy. He walked out on ’em, and good for him. But when the man who said yes to ‘Norbit’ says no, you know you’re in trouble.” (2012)

“I hope I haven’t offended anyone. It’s not my fault [points at his drink]. I like a drink as much as the next man. Unless the next man is Mel Gibson.” (2010)

“Everything this year was three-dimensional, except the characters in ‘The Tourist.’ I feel bad about that joke. I’m jumping on the bandwagon, because I haven’t even seen that movie. Who has?” (2011)

“Also not nominated, ‘I Love You Phillip Morris.’ Jim Carrey and Ewan McGregor, two heterosexual actors pretending to be gay. So the complete opposite of some famous Scientologists, then.” (2011)