It depends on how much stock is behind the receiver when folded. A bird's head pistol grip (ie - quite long) makes 26" OAL with a 14" barrel. Regular pistol grips need a 16" barrel to make 26" OAL. And they are all legal, just anything shorter than 26" when folded will be restricted.
Mark