Drupal\Core\Menu\StaticMenuLinkOverrides uses a config file called menu_link.static.overrides. This is wrong because it is a core service and should be prefixed by core. and also if there was a module called menu_link uninstalling that module would remove this configuration.

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Bug because of the uninstall problem
Issue priority Major because the unisntall problem would be hard to track
Disruption Potentially disruptive if existing sites used this functionality - however all they would have to do is rename the config - so I think the disruption is very small.

Comments

alexpott’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new3.27 KB

Renamed to core.menu_link.overrides - the static seems superfluous.

alexpott’s picture

StatusFileSize
new3.38 KB
new3.39 KB

@dawhner said in IRC that the static part is important so...

alexpott’s picture

I've gone for core.static_menu_link_overrides since it makes the class name in snake case.

alexpott’s picture

StatusFileSize
new3.38 KB
new3.42 KB

From @dawehner in IRC - Let's add a namespace in there so core. does not get crowded. Gone for core.menu.static_menu_link_overrides

The last submitted patch, 2: 2403169.2.patch, failed testing.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

<3 as this matches exactly the php namespace.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 5: 2403169.4.patch, failed testing.

alexpott’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new283 bytes
new3.7 KB

lolz

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.0.x, thanks!

  • catch committed 76cf704 on 8.0.x
    Issue #2403169 by alexpott: Static menu link override configuration is...

Status: Fixed » Closed (fixed)

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