With electrically remote controlled "mechanical" engines, a solenoid puts fuel pump to zero fuel delivery position. Exactly same operation as pulling the stop cable on earlier versions.
With "electronic" engines, stop command does the same thing, ecm uses injector control to achieve it.