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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | field-type-description-3427221-2.patch | 607 bytes | jabonillac@gmail.com |
Comments
Comment #2
jabonillac@gmail.com commentedAdded the patch with a default description.
Comment #3
rosemaryreilmanThank you for submitting the bug report and patch. I'll be reviewing as soon as I can.
Comment #5
rosemaryreilmanPatch applied and merged to dev branch.
Comment #6
rosemaryreilmanCreating 3.1.9 release shortly
Comment #7
rosemaryreilman