Setting the field type category as a translatable label in annotation is deprecated

Created on 14 July 2025, 19 days ago

Problem/Motivation

With Drupal 11 and the field_css module installed, it is no longer possible to add fields to paragraph or content types.

As described here New API for defining field type categories , the category in the field type definition can no longer be set as translation text. Now, the ID defined in core.field_type_categories.yml must be used.

Steps to reproduce

Add and activate Field_css in a Drupal 11 installation. Try to add a new field.

Proposed resolution

Change category = @Translation(“General”) to category = “general” in CssItem.php line 15.

Remaining tasks

Change category = @Translation(“General”) to category = “general” in CssItem.php line 15.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇭Switzerland gemisky

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