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 documentation for links template at links.html.twig and template_preprocess_links points to an href element, which no longer exists. This is confusing and I had to check the code to make sure that it was indeed not used.
This could be considered a task but I filed it as a bug because it is incorrect documentation.
Proposed resolution
Fix the documentation with correct names and remove outdated references.
Remaining tasks
Patch, Review, Commit
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | fix_documentation_for_links-2639656-2.patch | 4.21 KB | hussainweb |
Comments
Comment #2
hussainwebHere is a patch as per above.
Comment #3
jhodgdonThis is a direct duplicate of #2620854: links.html.twig docs are out of date
Comment #4
hussainwebI searched with all variations I could and didn't find it. :) Thanks for pointing to the issue.
Comment #5
jhodgdonThey happened to be right next to each other in my issue queue. :)
I'm not sure the other one covers template_preprocess so maybe add that to the other patch?
Comment #6
hussainwebYes, I did that and explained the differences in both patches in #2620854-8: links.html.twig docs are out of date.
Comment #7
jhodgdonPerfect, thanks very much!