comparison core/lib/Drupal/Core/Menu/menu.api.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
40 * dblog.overview: 40 * dblog.overview:
41 * title: 'Recent log messages' 41 * title: 'Recent log messages'
42 * parent: system.admin_reports 42 * parent: system.admin_reports
43 * description: 'View events that have recently been logged.' 43 * description: 'View events that have recently been logged.'
44 * route_name: dblog.overview 44 * route_name: dblog.overview
45 * options:
46 * query:
47 * uid: 1
45 * weight: -1 48 * weight: -1
46 * @endcode 49 * @endcode
47 * Some notes: 50 * Some notes:
48 * - The first line is the machine name for your menu link, which usually 51 * - The first line is the machine name for your menu link, which usually
49 * matches the machine name of the route (given in the 'route_name' line). 52 * matches the machine name of the route (given in the 'route_name' line).
50 * - parent: The machine name of the menu link that is the parent in the 53 * - parent: The machine name of the menu link that is the parent in the
51 * administrative hierarchy. See system.links.menu.yml to find the main 54 * administrative hierarchy. See system.links.menu.yml to find the main
52 * skeleton of the hierarchy. 55 * skeleton of the hierarchy.
56 * - options: Define additional route options such as query parameters. See
57 * https://www.drupal.org/docs/8/api/menu-api/providing-module-defined-menu-links
58 * for more information.
53 * - weight: Lower (negative) numbers come before higher (positive) numbers, 59 * - weight: Lower (negative) numbers come before higher (positive) numbers,
54 * for menu items with the same parent. 60 * for menu items with the same parent.
55 * 61 *
56 * Discovered menu links from other modules can be altered using 62 * Discovered menu links from other modules can be altered using
57 * hook_menu_links_discovered_alter(). 63 * hook_menu_links_discovered_alter().