Fix field type category

Created on 1 January 2025, about 1 month ago

I'm getting an error when adding a field to a node.

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

Looks like this module has an impartial fix for https://www.drupal.org/node/3375748 β†’ .

In the Prism field type plugin, the category is "Text", but this is not an existing category and I don't think it should be put into one of the existing text plain/formatted categories.

Proposal to change the category to "prism", and add prism.field_type_categories.yml for a new category "Prism" with description "Prism highlighted code".

πŸ› Bug report
Status

Active

Version

2.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

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