Cannot add a new field to any content type when using Drupal 10.2.x

Created on 9 February 2024, 5 months ago
Updated 27 March 2024, 3 months ago

Problem/Motivation

Drupal 10.2 introduces a new API for defining field type categories https://www.drupal.org/node/3375748
This prevents to add a new field to a content type, produces error:

AssertionError: "Augmentor" must be defined in MODULE_NAME.field_type_categories.yml in assert() (line 186 of /app/web/core/lib/Drupal/Core/Field/FieldTypePluginManager.php).

Steps to reproduce

Update to Drupal 10.2.
Try to add a new field.

Proposed resolution

Add augmentor.field_type_categories.yml.

Augmentor:
  label: 'Augmentor'
  description: 'Augmentor field types.'
  weight: -40

Remaining tasks

Provide a patch with a better description for the field category.

User interface changes

None

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇫🇮Finland mErilainen

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024