Skip to content
Snippets Groups Projects
Verified Commit eb0b595e authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #2998772 by msankhala, hazong, heddn, alexpott: Document how to specify...

Issue #2998772 by msankhala, hazong, heddn, alexpott: Document how to specify route options in links.menu.yml

(cherry picked from commit 16afb5ce)
parent d0c3e643
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,9 @@ ...@@ -42,6 +42,9 @@
* parent: system.admin_reports * parent: system.admin_reports
* description: 'View events that have recently been logged.' * description: 'View events that have recently been logged.'
* route_name: dblog.overview * route_name: dblog.overview
* options:
* query:
* uid: 1
* weight: -1 * weight: -1
* @endcode * @endcode
* Some notes: * Some notes:
...@@ -50,6 +53,9 @@ ...@@ -50,6 +53,9 @@
* - parent: The machine name of the menu link that is the parent in the * - parent: The machine name of the menu link that is the parent in the
* administrative hierarchy. See system.links.menu.yml to find the main * administrative hierarchy. See system.links.menu.yml to find the main
* skeleton of the hierarchy. * skeleton of the hierarchy.
* - options: Define additional route options such as query parameters. See
* https://www.drupal.org/docs/8/api/menu-api/providing-module-defined-menu-links
* for more information.
* - weight: Lower (negative) numbers come before higher (positive) numbers, * - weight: Lower (negative) numbers come before higher (positive) numbers,
* for menu items with the same parent. * for menu items with the same parent.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment