Anyone know what actually happens when you hit the use dnsmasq option for dhcp in the unifi controller?

Does it ignore anything in the config.gateway.json and read dhcp-host entries from a dnsmasq file in the etc/dnsmasq.d folder?