You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a failing Assertion in Drupals FieldTypePluginManager class. Depending on how your debugging is configured this could lead to a fatal error "AssertionError: "AZ Quickstart" must be defined in MODULE_NAME.field_type_categories.yml in assert() (line 195 of core/lib/Drupal/Core/Field/FieldTypePluginManager.php).".
To Reproduce
Steps to reproduce the behavior:
Set assert_options(ASSERT_ACTIVE, TRUE); in Drupal settings or set the PHP config assert.active to on.
Try adding a new field to any of the content types.
You should receive the error " "AZ Quickstart" must be defined in MODULE_NAME.field_type_categories.yml in assert() " with a stack trace.
Proposed resolution
Looks like we need a az_quickstart.field_type_categories.yml file to define the category specified in FieldType definitions in AZ Quickstart. Currently the definitions for AZCardItem and AZAccordionItem set the category to category: new TranslatableMarkup("AZ Quickstart"), but "field type category as a translatable label in annotation is deprecated" (reference).
Expected behavior
Adding a new field to Content Types should not result in an Assertion Error.
The text was updated successfully, but these errors were encountered:
Fixes#3992 by adding a az_quickstart.field_type_categories.yml file that defines the az_quickstart field type category. Update references to previous "AZ Quickstart" category.
Problem/Motivation
There's a failing Assertion in Drupals FieldTypePluginManager class. Depending on how your debugging is configured this could lead to a fatal error "AssertionError: "AZ Quickstart" must be defined in MODULE_NAME.field_type_categories.yml in assert() (line 195 of core/lib/Drupal/Core/Field/FieldTypePluginManager.php).".
To Reproduce
Steps to reproduce the behavior:
assert_options(ASSERT_ACTIVE, TRUE);
in Drupal settings or set the PHP configassert.active
to on.Proposed resolution
Looks like we need a
az_quickstart.field_type_categories.yml
file to define the category specified in FieldType definitions in AZ Quickstart. Currently the definitions forAZCardItem
andAZAccordionItem
set the category tocategory: new TranslatableMarkup("AZ Quickstart")
, but "field type category as a translatable label in annotation is deprecated" (reference).Expected behavior
Adding a new field to Content Types should not result in an Assertion Error.
The text was updated successfully, but these errors were encountered: