Upcast attributes in variables not named "attributes"

Created on 4 December 2023, about 1 year 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.71.5 2024