How is a backend email template dropdown implemented?

See also: