Problem/Motivation

For some obscure reasons contextual links just get added to system provided menus (tools, admin, etc.)
though skipped for custom menus, which though certainly could profit from them as well.

Proposed resolution

Adapt the logic to also include the other menus.

Remaining tasks

User interface changes

API changes

Comments

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new7.41 KB

Here is a patch.

Status: Needs review » Needs work

The last submitted patch, 1: menu_contextual-2314985-1.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new3.04 KB

Yeah two patches at once. Let's adapt the test coverage to test this as well.

jhedstrom’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll
idebr’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new3.23 KB
idebr’s picture

StatusFileSize
new12.94 KB
new13.41 KB

Yes please, this is very useful for administration :)

Screenshot before:

Screenshot after:

Status: Needs review » Needs work

The last submitted patch, 5: menu_contextual-2314985-5.patch, failed testing.

idebr’s picture

Status: Needs work » Needs review
StatusFileSize
new3.57 KB
new871 bytes

I updated the test added in #2379083: Regression (again): Menu contextual links no longer visible in menu blocks, when block caching is enabled to include the custom block id instead of the hardcoded assumption.

idebr’s picture

StatusFileSize
new871 bytes

Status: Needs review » Needs work

The last submitted patch, 8: interdiff-8-5.patch, failed testing.

idebr’s picture

Status: Needs work » Reviewed & tested by the community
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

This is really nice. This issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 33066b7 and pushed to 8.0.x. Thanks!

  • alexpott committed 33066b7 on 8.0.x
    Issue #2314985 by idebr, dawehner: Always add contextual links to menu...

Status: Fixed » Closed (fixed)

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