The magnetic coil ( 1 ) of an electromagnetic valve is held inside a yoke plate ( 2 ) by means of an appropriate component ( 3 ) and arranged inside the yoke plate ( 2 ) in a manner so that it can be rotated arbitrarily about the longitudinal axis of the valve housing ( 4 ).