menu_link_attributes 8.x-1.2

Bug fixes
New features

Note: The class attribute is now stored as an array. In case you see an errors like

Notice: Array to string conversion in Drupal\Core\Template\AttributeArray->__toString() (line 73 of core/lib/Drupal/Core/Template/AttributeArray.php).

you need to check your Twig templates and adjust something like this:

{% set link_classes = link_classes|merge([item['original_link'].options.attributes.class]) %}

into something like this:

menu_link_attributes 8.x-1.0

Say hello to the first stable version of this module 🐣

We have added new permissions for using menu link attributes while creating/editing menu links and added support for container attributes which can be added to the wrapping <li> instead of the menu link.

menu_link_attributes 8.x-1.0-beta5

New features

We introduced container attributes in 8.x-1.0-beta4 which where grouped and display seperately from the link attributes. This has been changed and you can find all attributes in one fieldset now.

All new commits since the last version can be found here.

menu_link_attributes 8.x-1.0-beta4

Bug fixes
New features

Permissions

The new version of Menu Link Attributes provides two new permissions which need to be granted for specific roles:

  • Use menu link attributes
  • Administer menu link attributes

Container attributes

You can now create attributes that are applied on the container (<li>) by creating a new attribute starting with container_- this can be very handy sometimes.

Subscribe with RSS Subscribe to Releases for Menu Link Attributes