The Drupal 8 menu system is much more logical than in previous versions, and breaking the many functions of hook_menu() into multiple YAML files makes perfect sense and simplifies the creation and management of most Drupal menu items.
However, because the YAML files are static elements, it's not clear to me how I can create a dynamic path and menu item in my module. This was fairly easy in hook_menu(), and was handled the same way as regular menu items.
In my module, I'd like to allow the admin to set the path, menu title and parent menu item for a form (the form will have several instances, each of which will have its own path and menu item, defined by the site admin).
Really appreciate if anyone can point me at an example, or give a simple run down of how to do this.