Magnetic on–off switching of a plasmonic laser