How do you edit the markup in hook_preprocess_item_list? – Drupal 8/9

Basically, I need to add a role=”button” to each link option in a views exposed filter. I’m trying to do this with the preprocess_item_list, but can only add attributes to the item wrappers. Is there a way to edit the markup (or the item.value if I went the Twig template route)?

submitted by /u/GeekFish
[link] [comments]


Go to Source of this post
Author Of this post: /u/GeekFish
Title Of post: How do you edit the markup in hook_preprocess_item_list? – Drupal 8/9
Author Link: {authorlink}