Active
Project:
Documentation
Component:
Missing documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 May 2016 at 09:04 UTC
Updated:
11 Mar 2023 at 14:42 UTC
Jump to comment: Most recent
Switching from theme functions to Twig templates in Drupal 8 was a big step forward to make customization of Drupal's HTML output much simpler. Most of the time a Twig template is easy to understand and so it is easy to customize.
The menu_links macro (currently) contained by menu.html.twig file is fairly complex however. Although I was able to customize it to my needs after some investigation I think it is not possible to--perfectly--understand what happens in this code without a massive developer knowledge.
Write a line by line explanation of the macro in the drupal.org documentation. I've just created a page for this: https://www.drupal.org/node/2717173
Write the documentation.
-
-
-
Comments
Comment #2
jhodgdonThis is not a Drupal Core issue. Moving to Documentation project.
Comment #3
thamas@jhodgdon Thanks for the corrections! Maybe the title should be set back because the template is called to
menu.html.twigand the macro inside it is called tomenu_links.Also the macro is may be moved to an other template as it can be read in #2490308: Refactor the macro on menu.html.twig for reusability
Comment #4
thamasComment #5
avpaderno