We want all examples modules to use a *.menu_links.yml file to define a menu link.
The Tour Example uses the deprecated hook_menu() to define menu links, so it needs to be converted.
You can learn about this change to Drupal in this change record: https://drupal.org/node/2228089
Steps to complete in order to finish this task:
- Assign yourself to this issue.
- Check out Examples.
- Convert hook_menu() to a file called tour_example.menu_links.yml.
- Write a test which verifies that the menu links appear on the page where they're supposed to appear. PHPUnit Example has a test for this, which should be emulated.
- Write a test which performs a drupalGet() on each path, to verify that the route is defined.
- Submit the patch.
- Be lauded as a hero!
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | tour_example-2277367-3.patch | 3.11 KB | martin107 |
| #1 | tour_example-2277367-1.patch | 3.19 KB | piestep |
Comments
Comment #1
piestep commentedUpdate tour_example with 1) to use *.menu_links.yml, 2) added test to verify Tool Menu link, and 3) test for tour_example page.
Comment #2
mile23Needs to wrap out as close t 80 chars as you can, and also have no trailing spaces.
Comment #3
martin107 commentedPatch not longer applied, so this is the psr-4 reroll
Plus I have removed the whitespace issue.
Comment #4
mile23Thanks, piestep, and thanks martin107 for the re-roll!