Pass attributes to create_attribute in top-bar template

Created on 20 August 2024, 3 months ago
Updated 21 August 2024, 3 months ago

Problem/Motivation

When I try to preprocess an attribute into the wrapper in top-bar.html.twig it doesn't show up.

Steps to reproduce

function navigation_preprocess_top_bar(&$variables) {
  $variables['attributes']['class'][] = 'my-class';
}

Proposed resolution

Pass attributes into create_attribute.

πŸ› Bug report
Status

RTBC

Version

11.0 πŸ”₯

Component
NavigationΒ  β†’

Last updated about 1 hour ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States Tim Bozeman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024