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
Issue fork signaturefield-3568276
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:
- 3568276-assertionerror-general-must
changes, plain diff MR !4
Comments
Comment #2
flyke commentedComment #3
flyke commentedUpdated the proposed solution
Comment #5
matthijsThanks for reporting, the suggested changes have been applied.