Find out why attributes are still arrays in theme

Created on 14 November 2023, 8 months ago

Problem/Motivation

Currently the attributes, like class for example, in the render arrays, are still regular array. Drupal has the Attribute class for this and should auto-convert it, see

still this doesn't happen for all cases, I guess because we have nested arrays there.

Perhaps we should convert them in https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21... or in the twig template?

What's best practice and which cases do we have to fix?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

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

Comments & Activities

Production build 0.69.0 2024