We can return db mapping info even for objects that are not included in backup/restore and it may be useful in future (no use in core yet).
This commit covers all events outside of /mod/. It adds mapping info for restoring events, or the default implementation which returns false if mapping is not required.