Problem

The items in this render array should have #weight properties that are properly spaced (e.g. 10, 20, 30, 40) so that their order remains consistent across releases and other modules can easily add their own items in the desired place.

Solution

Adjust social_group_menu_local_tasks_alter to provide #weights for all known $data['tabs'][0] children.

Add the correct weight for group related links to the following .yml files:

  • social_group.links.task.yml

Comments

Kingdutch created an issue. See original summary.

kingdutch’s picture

Issue summary: View changes
StatusFileSize
new16.07 KB
foxtrotcharlie’s picture

Assigned: Unassigned » foxtrotcharlie
foxtrotcharlie’s picture

Status: Active » Needs review
StatusFileSize
new2.04 KB

Pull request here: https://github.com/goalgorilla/open_social/pull/1121

Patch also attached here for reference.

jaapjan’s picture

Added some feedback on the PR. I think in this case we only need to make the change to the social_group.links.task.yml.

jaapjan’s picture

Status: Needs review » Fixed

  • foxtrotcharlie authored 233d16f on 8.x-3.x
    Issue #3010778 by foxtrotcharlie, jaapjan, Kingdutch: Ensure group local...

Status: Fixed » Closed (fixed)

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