Using the Drupal 8 Menu API

Drupal 8 introduces a new routing system which means that hook_menu has disappeared. Menu links are instead defined in yaml files.

Click on any of the links below to view working examples of how to define menu items in Drupal 8: