Using a translatable string as a category for field type is deprecated

Created on 23 September 2025, 11 days ago

Problem/Motivation

When I add a new field I get error AssertionError: "Reference" must be defined in MODULE_NAME.field_type_categories.yml in assert() (line 183 of /var/www/html/docroot/core/lib/Drupal/Core/Field/FieldTypePluginManager.php).

There is a very similar and resolved issue for Simple oAuth issue 🐛 "Reference" must be defined in MODULE_NAME.field_type_categories.yml in assert() (line 183 of /var/www/html/web/core/lib/Drupal/Core/Field/FieldTypePluginManager.php) Needs review

Steps to reproduce

Add a field on D11 with this module enabled.

Proposed resolution

Don't translate category in annotation.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom dahousecat

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024