Lego End of Train Device

How is the Lego End of Train Device in Kent and Theo’s video attached to the the car?