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

Issue fork augmentor-3420411

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mErilainen created an issue. See original summary.

hmendes made their first commit to this issue’s fork.

hmendes’s picture

Status: Active » Needs review
murrayw’s picture

Assigned: Unassigned » eleonel

eleonel made their first commit to this issue’s fork.

eleonel’s picture

Status: Needs review » Reviewed & tested by the community

I just pushed an improvement in the field description, thanks for your contribution.

  • eleonel committed ada1318d on 1.1.x authored by hmendes
    Issue #3420411: Cannot add a new field to any content type when using...
eleonel’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.