The Needs Review Queue Bot → tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- 🇺🇸United States angrytoast Princeton, NJ
Question: Per #18 ✨ Set MenuLinkContent getEntity to public visibility Fixed
Also if the method is going to be public it should probably be added to MenuLinkContentInterface.
Is this accurate? We're looking at the menu link plugin class, which extends
MenuLinkBase
which implementsMenuLinkInterface
Should it be on
MenuLinkInterface
orMenuLinkContentInterface
? - Status changed to Needs review
over 1 year ago 5:21pm 18 May 2023 - last update
over 1 year ago 29,389 pass - 🇮🇳India mohit_aghera Rajkot
- 🇺🇸United States smustgrave
Been 3 years without submaintainer review so moving to framework.
- Status changed to RTBC
over 1 year ago 5:15pm 17 June 2023 - 🇺🇸United States smustgrave
To get this in front of a committer for their thoughts.
- last update
over 1 year ago 29,431 pass - last update
over 1 year ago 29,431 pass - Status changed to Needs work
over 1 year ago 8:45pm 19 June 2023 - 🇬🇧United Kingdom catch
+++ b/core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php @@ -9,11 +9,12 @@ use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Symfony\Component\DependencyInjection\ContainerInterface; +use Drupal\menu_link_content\MenuLinkContentInterface as MenuLinkContentEntityInterface; /** * Provides the menu link plugin for content menu links. */ -class MenuLinkContent extends MenuLinkBase implements ContainerFactoryPluginInterface { +class MenuLinkContent extends MenuLinkBase implements MenuLinkContentInterface, ContainerFactoryPluginInterface {
It's a bit confusing having two classes called MenuLinkContentEntityInterface. I don't think I realised this would happen when I asked for the method to be added to the interface.
Sorry to contradict myself from 2019, but I think we should not add this interface and just make the method on the plugin class public instead.
I checked for duplicate test coverage and couldn't find any, so that bit is fine.
- Status changed to Needs review
over 1 year ago 12:13pm 21 June 2023 - last update
over 1 year ago CI aborted - 🇮🇳India mohit_aghera Rajkot
Done, removed the additional interface and test is passing on local.
- last update
over 1 year ago 29,506 pass - 🇮🇳India mohit_aghera Rajkot
- Status changed to RTBC
over 1 year ago 12:53pm 21 June 2023 - 🇬🇧United Kingdom catch
OK this looks good.
It just being a public method on a plugin means there's no official bc guarantee, but in practice unless we do a major reworking of the menu links system again I can't see this changing dramatically, and for core I think it makes more sense than adding an interface for a plugin implementation.
- last update
over 1 year ago 29,552 pass - last update
over 1 year ago 29,554 pass - last update
over 1 year ago 29,560 pass - last update
over 1 year ago 29,568 pass - last update
over 1 year ago 29,572 pass - last update
over 1 year ago 29,802 pass - last update
over 1 year ago Build Successful - last update
over 1 year ago 29,803 pass - last update
over 1 year ago 29,803 pass - Status changed to Fixed
over 1 year ago 8:16am 11 July 2023 - 🇫🇷France Grimreaper France 🇫🇷
Hi,
Thanks for the merge!
I think some info in the change record are wrong:
- Introduced in branch should be 11.x, not 10.2.x
- Introduced in version should be 11.0.0, not 10.2.0Or am I confused with https://www.drupal.org/about/core/blog/new-drupal-core-branching-scheme-... → ?
- 🇫🇮Finland lauriii Finland
10.2.x will be branched from 11.x later this year. I’m not sure if the introduced in branch should 11.x or 10.2.x but the version is correct.
- 🇫🇷France Grimreaper France 🇫🇷
Thanks for the quick reply!
So I was confused :)
I also searched for a 10.2.x branch in Gitlab in the meantime and did not find one, so this is the explanation.
As Drupal 10.1.0 was out, I thought a 10.2.x branch would already exist.
Sorry!
Automatically closed - issue fixed for 2 weeks with no activity.