Step 3: Convert hook_menu() and forms
Last updated on
15 October 2016
This page is still under development.
-
Create your
mymodule.routing.yml
file- 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
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion