For #25773 - separated publish entity path resolution into new hook.

This is to allow custom resolution of the local path for the published file entity from the Perforce depot path stored in the url.