Missing description in FieldType declaration

Created on 21 December 2023, 11 months ago
Updated 20 March 2024, 8 months ago

Problem/Motivation

Drupal 10.2 gives the following error:
TypeError: Drupal\Core\Field\FieldTypeCategory::getDescription(): Return value must be of type Drupal\Core\StringTranslation\TranslatableMarkup

Steps to reproduce

  • Install this module on Drupal 10.2.0
  • attempt to add a field to any content type /admin/structure/types/manage/BUNDLE/fields
  • site crashes with: "The website encountered an unexpected error. "

see:
🐛 Error TypeError: Drupal\Core\Field\FieldTypeCategory::getDescription() if a FieldType has 'description' missing in its annotation RTBC
🐛 TypeError: Drupal\Core\Field\FieldTypeCategory::getDescription(): Return value must be of type Drupal\Core\StringTranslation\TranslatableMarkup, string returned Fixed

Proposed resolution

🐛 Bug report
Status

RTBC

Version

3.0

Component
Field 

Last updated about 5 hours ago

Created by

🇮🇳India dipakmdhrm

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