July 2017
Intermediate to advanced
456 pages
11h 32m
English
Menu links have been moved out into a separate YAML file. To create menu links, add a {module}.links.menu.yml file in the root directory of your module. To create a menu link for the test page we created earlier, you would make a mastering_drupal_8.links.menu.yml file that looks like:
mastering_drupal_8.test_page: title: 'Test' description: 'Test page' route_name: mastering_drupal_8.test_page weight: 100 menu_name: main
For each menu link element, you have the following attributes:
Read now
Unlock full access