Create a path alias from a contrib module in drupal 9 10


Create a path alias for paths used by your contributed module to give nicer paths for module-name-prefixed paths, if those paths are not already taken.

Words searched

Per this is the way to programmatically save a path alias: