Problem/Motivation

After installing and enabling this module, when I try to add a field to a node entity type, I get the following error:
AssertionError: "Algemeen" must be defined in MODULE_NAME.field_type_categories.yml in assert() (regel 183 van /var/www/html/web/core/lib/Drupal/Core/Field/FieldTypePluginManager.php).

Steps to reproduce

- Add module via composer (Add the dev version to a Drupal 11 project)
- Enable module
- Try to add a field to a node type

Proposed resolution

Edit signaturefield/src/Plugin/Field/FieldType/SignatureFileItem.php line 17 and change category to signature:
* category = "signature",

Edit signaturefield/src/Plugin/Field/FieldType/SignatureItem.php line 16 and change category to signature:
* category = "signature",

Create signaturefield.field_type_categories.yml in the module folder:

signature:
  label: 'Signatures'
  description: 'Field to store Signatures.'

Remaining tasks

- Create patch or MR
- Review and approve
- Create new release

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

flyke created an issue. See original summary.

flyke’s picture

Issue summary: View changes
flyke’s picture

Issue summary: View changes

Updated the proposed solution

  • matthijs committed bc49ccd8 on 1.x
    Issue #3568276 by flyke, Matthijs: Fix field category
    
matthijs’s picture

Status: Active » Fixed

Thanks for reporting, the suggested changes have been applied.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • matthijs committed 47893117 on 1.x
    Issue #3568276 by flyke, Matthijs: Change category description
    

matthijs changed the visibility of the branch 3568276-assertionerror-general-must to hidden.

Status: Fixed » Closed (fixed)

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