How do I add a class to local task links in Twig template? I've used custom templates to add BEM style classes to both the local tasks UL wrapper and the individual LI items, I'd like to also add a class to the actual local task (tab) link.

This is the default code in the Classy template:

&lt;li{{ attributes.addClass(is_active ? 'is-active') }}&gt;{{ link }}&lt;/li&gt;


Is there no way to simply add a class to the {{ link }} item?
{% set link = link|merge({ '#attributes': { 'class': [ 'your', 'custom', 'classes' ] } }) %}

&lt;li&gt;{{ link }}&lt;/li&gt;