It's in the Ontario legislation, under the criterion, the best interests of the child—I think it may be here too—that where it's reasonable, you should be looking at the children's views and preferences.
On November 26th, 2018. See this statement in context.