Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
#2892942: Contextual links support options but not use them to generate links add support for "options" in *.links.contextual.yml
These options are currently being added outside_in_contextual_links_view_alter() but this can be moved to outside_in.links.contextual.yml
Comment | File | Size | Author |
---|---|---|---|
#2 | 2893978-2.patch | 1.5 KB | tedbow |
Comments
Comment #2
tedbowHere is patch.
but #2892942: Contextual links support options but not use them to generate links might be reverted because it has not test coverage
Comment #3
tedbow#2892942: Contextual links support options but not use them to generate links was reverted
Comment #4
Wim LeersComment #5
lauriiiComment #6
tedbow@lauriii thanks for updating this issue.
Retesting. Hopefully will pass.
Comment #7
tim.plunkettAwesome!
Comment #9
Wim LeersRTBC++
Comment #11
star-szrCommitted 0a42c06 and pushed to 8.5.x. Thanks!
Minor: I don't think any of these needed quotes. This isn't consistent in HEAD at all and I can't find a documented standard so more of a curiosity and not anything worth making a fuss over :) A quick search turned up #2124559: Figure out a standard for booleans in yaml files.
Comment #12
Wim Leers#11 great remark! Actually… I'm pretty sure that
This is wrong. This will result in
<blah data-outside-in-edit="TRUE">
, rather than<blah data-outside-in>
. I think this may require a revert plus test coverage. Assigning to @tedbow for decision on that.I should've noticed this, especially because I worked on the test coverage at #2892942: Contextual links support options but not use them to generate links that explicitly tests this! :( Sorry!
Comment #13
star-szr@Wim Leers ah yes you're right:
<a href="/admin/structure/block/manage/bartik_tools/off-canvas?destination=node" class="use-ajax" data-dialog-type="dialog" data-dialog-renderer="off_canvas" data-outside-in-edit="TRUE">Quick edit</a>
I think a follow-up issue would be fine, assuming that everything still works with the unneeded TRUE value.
Comment #14
Wim LeersThis should also be committed to 8.4.x, actually.
Comment #15
star-szr@Wim Leers thank you :) 8.4.x was and is frozen for the first alpha but agreed this should go into 8.4.x when possible.
Comment #16
Wim LeersYep! Hope this is the right status. Perhaps
is more accurate?I don't have a preference.
Comment #18
star-szrCherry-picked as cccc2d4 and pushed to 8.4.x. Thanks!
I created a follow-up to clean up the data types and discuss further: #2899942: Correct data types in outside_in.links.contextual.yml
Comment #19
Wim LeersYay, thanks @Cottser!
Comment #20
star-szrTotally meant to add the relation, thank you @Wim Leers :)
Comment #21
Wim LeersHah, np :)
Comment #23
tedbowChanging to new settings_tray.module component. @drpal thanks for script help! :)