Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
menu system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Sep 2018 at 13:26 UTC
Updated:
4 Apr 2019 at 09:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
heddnUpdated IS. I was missing a query parameter. After I added that, it worked. Looks like this is now a novice task to document in menu.api.php how to pass things beside just route_parameters.
Comment #3
heddnComment #4
heddnSomething like this would work, along with an explanation of how to add options.
Comment #5
dpacassiComment #6
hazong commentedThanks for the proposal, I'm working on it!
Comment #7
hazong commentedAttached is the patch with the proposed solution.
Comment #8
hazong commentedComment #9
heddnGreat. We have both things needed for these docs updates. A good example, plus some explanatory text of the example.
Comment #11
msankhala commentedTestbot hickup. moving back to RTBC.
Comment #12
wim leersThanks for this! Refined issue metadata, otherwise committers may not look at this.
Comment #13
hazong commentedSo means, I have to look at it again?
Comment #14
heddnre #13: no, its that committers don't look at support requests. So moving this to a task is a good idea for this to get committed. No more work now it is in the right queue.
Comment #15
wim leersYep! Thanks again, @hazong!
Comment #16
alexpottsuch as e.gseems to be repeating itself. We only needsuch as. It would be nice to link off to somewhere that describes the full scope of what can go in here.Comment #17
hazong commentedComment #18
heddnI think linking to the url parameter docs would be appropriate.
Comment #19
msankhala commentedHere is the updated patch.
Comment #20
heddnThis doesn't really talk about URL parameters to a link. Just how to define a route. Perhaps https://www.drupal.org/docs/8/api/routing-system/routing-related-objects... is more better?
Comment #21
msankhala commentedThis also does not explicitly explains about query parameter neither does Add a menu link doc. I think we can add query option in Add a menu link doc and link it here. Thought?
Comment #22
msankhala commentedAny thoughts?
Comment #23
heddnYeah, I like https://www.drupal.org/docs/8/creating-custom-modules/add-a-menu-link
Comment #24
kalyansamanta commentedParameter converters are services so you should add an entry to your example.services.yml for your custom ParamConverter:
services:
example.param_converter:
class: Drupal\example\Routing\ParamConverter
tags:
- { name: paramconverter }
Comment #25
pasqualleone more doc page about links.menu.yml, but no mention of the query parameter..
https://www.drupal.org/docs/8/api/menu-api/providing-module-defined-menu...
Comment #26
volkswagenchickTagging for upcoming contribution days.
Comment #27
msankhala commentedComment #28
volkswagenchickComment #29
msankhala commentedThanks @Pasqualle for providing the link to correct doc. Here is the updated patch.
Comment #30
msankhala commentedComment #31
heddnI think this looks good now. All feedback is addressed and the link points to a generally useful docs page.
Comment #33
heddnComment #35
Mixologicdispatcher/testbot issue. back to rtbc
Comment #37
larowlanUpdating issue credits
Comment #40
larowlanCommitted 16afb5c and pushed to 8.8.x. Thanks!
c/p as eb0b595e62 to 8.7.x