Step 3: Convert hook_menu() and forms
Body
This page is still under development.
Create your
mymodule.routing.ymlfile- Change record: All functionality of hook_menu() is replaced by new systems for routing
- Change record: hook_help() uses routes instead of paths
- Community Documentation: Routing system in Drupal 8
- Create menu items to go with your routers using the Menu and routing system
- D7 to D8 upgrade tutorial: Convert hook_menu() to Drupal 8 APIs
Convert your page callbacks to controllers
- Creating a page controller (includes a routing example)
Convert your form builders to FormInterface
Knowledge Category