Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The class comment for Drupal\Core\Menu::MenuLinkTreeElement()
includes these lines:
/**
* Provides a value object to model an element in a menu link tree.
*
* \Drupal\Core\Menu\MenuLinkTreeElement objects represent a menu link's data.
* Objects of this class provide complimentary data: the placement in a tree.
...
*/
The class that "represent a menu link's data" should be something other than "this class".
Also, the doc block uses "complimentary" when it means "complementary": in the quoted snippet and again a few lines later.
Proposed resolution
- Replace
MenuLinkTreeElement
withMenuLinkInterface
- Replace "complimentary" with "complementary" (twice).
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
N/A
Issue fork drupal-3323855
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
benjifisherComment #4
smustgrave CreditAttribution: smustgrave at Mobomo commentedtagging for bugsmash. Changes look simple to me so RTBC
Comment #5
benjifisherComment #7
catchCommitted/pushed to 10.1.x and cherry-picked to 10.0.x, thanks!