Error creating custom fields on translatable site

Created on 12 March 2024, 10 months ago
Updated 15 March 2024, 9 months ago

Problem/Motivation

Admin user cannot add custom fields to any entity because field type error:

TypeError: Drupal\Core\Field\FieldTypeCategory::getDescription(): Return value must be of type Drupal\Core\StringTranslation\TranslatableMarkup, string returned in Drupal\Core\Field\FieldTypeCategory->getDescription() (line 26 of core/lib/Drupal/Core/Field/FieldTypeCategory.php).

Steps to reproduce

- Enable the module on a drupal 10 Multilanguage.
- Go to any content type and try to add a new field.
- White screen with the translatable markup error will appear.

Proposed resolution

The error is caused because a missing description on the fieldtype.

- Add a default translatable description to the ConstantContactListItem docblock annotation.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.1

Component

Code

Created by

πŸ‡¨πŸ‡΄Colombia jabonillac@gmail.com

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

Comments & Activities

Production build 0.71.5 2024