3

Yes, theme regions and CSS are what you need. Basically, from admin/structure/block you place your menu block into one of your theme's region. And then, with CSS you adjust the style of the region to your needs. If the HTML structure does not match your needs, you can also alter the page template of your theme (page.html.twig file). If this file does not ...


1

You can load all module defined menu links (i.e. links defined in *.menu.links.yml with the MenuLinkManager service's getDefinitions() method and then parse the list for only links defined by your module. $all_module_link_definitions = \Drupal::service('plugin.manager.menu.link') ->getDefinitions(); // Next parse the list for only links defined by ...


1

item.content['#url'] gives a render array : However, if you need to extract only the URL which can be anything like frontpage, a node in your site or external, you need to use the .toString() utility. item.content['#url'].toString() Title can be accessed from item.content['#title'] Remember that it's all inside the loop: {% for item in items %} &...


1

if your looking for a D8+ fix, the Menu Link Attributes module saves a lot of time. You can specify attributes and classes through a YML file or directly to individual links in Admin Menu UI.


Only top voted, non community-wiki answers of a minimum length are eligible