fix(#3166364): replace dead path hooks with entity hooks
Fixes the dead hook_path_update()/hook_path_delete() implementations, plus a getAlias()/getPath() bug that left cache invalidation broken on alias update and delete.
- Replace the dead hooks with
hook_path_alias_update()/hook_path_alias_delete(), based on rollins' patch in #10. - Use
getPath()instead ofgetAlias()across all three hooks so cache tags resolve correctly. - Also invalidate the original source path when an alias is repointed to a different one, so the entity that lost the alias doesn't keep serving a stale cached response.
- Kernel test coverage throughout.
Credit to guillerecalde for the original report and patch, and rollins for the patch this builds on.