Leave the heading level in the template and out of the variables for links.html.twig

Created on 20 October 2013, over 10 years ago
Updated 2 February 2023, over 1 year ago

Follow-up from #1939064: Convert theme_links() to Twig → .

This is from @farrington comment #1939064-67: Convert theme_links() to Twig →

In the preprocess the heading.level is not assigned with any value, and on the other hand in the old theme_links() it only sett statically to 'h2'.

So there seems be no reason to keep any of that in the preprocess nor in the twig file.

The documentation is also edited to reflect these changes.

📌 Task
Status

Needs work

Version

10.1 ✨

Component
Theme  →

Last updated about 1 hour ago

Created by

🇨🇦Canada joelpittet Vancouver

Live updates comments and jobs are added and updated live.
  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024