For my area I know the code for photovoltaic systems. There has to be an accessible DC main switch (accessible just means there has to be a way to get to it, in one case it was via a retractable attic ladder and the PoCo didn't have any problems with it) an auto disconnect and a disconnect means in the main panel (e.g. a circuit breaker). Everything is hardwired.