field type category has not to be translated

Created on 21 March 2025, 2 months ago

Problem/Motivation

In Drupal 11.1.15 adding a new field to a content type or in my case paragraph type throws an error.

Steps to reproduce

- Try to create/add a new field to an arbitrary content type
- The following error shows:
AssertionError: "Referenz" must be defined in MODULE_NAME.field_type_categories.yml in assert() (line 183 of core/lib/Drupal/Core/Field/FieldTypePluginManager.php).

Proposed resolution

As described in the record https://www.drupal.org/node/3375748 the `category` in lottiefiles_field/src/Plugin/Field/FieldType/LottiefilesFieldItem.php needs to be 'reference' instead of '@Translation("Reference")'

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇭Switzerland bgebistorf

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