Cockpit - the next iteration šŸ„

And how would you call a singleton in the new version?

I have tried:

  • $primary_menu = Cockpit::instance()->module(ā€˜Frontpageā€™)->find(ā€˜primary_menuā€™);
  • $frontpage = Cockpit::instance()->module(ā€˜Frontpageā€™);