Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Scenario: I have a custom menu, full of links defined by an end user.
It's inside a custom block, also defined by an end user.
The block has a title the user picked.
I need to have a variable in menu.html.twig that contains the title of the block, as picked by the user.
So, if Sally creates a block named "Avast!" and then places a menu inside it full of links to pirate-themed web sites, I want to be able to put something like {{ block_name }} into menu.html.twig, and have it result in the phrase "Avast!"
I'm working on a custom Drupal 8.7.8 theme, and have run into an odd issue: the user name in the "My Account" item is missing. The user icon is present, just no text, and it is misaligned. The source code is as follows: