Upcast attributes in variables not named "attributes"

Created on 4 December 2023, 7 months ago

Problem/Motivation

Variables with other names can contain attributes. For example, the block.html.twig template uses a title_attributes variables.

Proposed resolution

attributes should not be hardcoded in ServerEndpointController::attributesPropNeedsUpcasting(), it should work with any variable that is typed as Drupal\Core\Template\Attribute.

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France prudloff Lille

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024