Problem/Motivation

Follow-up to #2893978: Use newly supported 'options' in contextual links in Settings Tray contextual links

#2893978: Use newly supported 'options' in contextual links in Settings Tray contextual links implemented "options" in outside_in.links.contextual.yml but there is a quoted boolean and also some other unnecessary quoting in the yml. The quoted boolean results in some markup that's not quite right (the last attribute should be valueless, just data-outside-in-edit):

<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>

Proposed resolution

Update the data in outside_in.links.contextual.yml. Consider whether test coverage would make sense.

Remaining tasks

Patch

User interface changes

Not UI but a slight markup change.

API changes

n/a

Data model changes

n/a

CommentFileSizeAuthor
#4 2899942-4.patch605 bytestedbow
#2 2899942-2.patch776 bytestedbow

Comments

Cottser created an issue. See original summary.

tedbow’s picture

Status: Active » Needs review
StatusFileSize
new776 bytes

Fixing

wim leers’s picture

Lots of unrelated changes?

tedbow’s picture

StatusFileSize
new605 bytes

re unrelated changes before I made the patch I looked at node.links.contextual.yml and saw nothing had quotes. I thought that was correct But now I look at others and that is not the case. block.links.contextual.yml has all quoted and menu_ui.links.contextual.yml has some quoted.

Removing changes unrelated to options.

wim leers’s picture

Status: Needs review » Reviewed & tested by the community

  • Cottser committed b9d6ef3 on 8.5.x
    Issue #2899942 by tedbow: Correct data types in outside_in.links....

  • Cottser committed 9d44ec4 on 8.4.x
    Issue #2899942 by tedbow: Correct data types in outside_in.links....
star-szr’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed b9d6ef3974 to 8.5.x and 9d44ec4839 to 8.4.x. Thanks!

tedbow’s picture

Component: outside_in.module » settings_tray.module

Changing to new settings_tray.module component. @drpal thanks for script help! :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.