- Issue created by @opauwlo
The `font_display.schema.yml` file is missing the `style` and `weight` definitions. This omission leads to errors when attempting to install the module or create and display fonts during tests using PHPUnit and `KernelTestBase`. Specifically, the error is:
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for fontyourface.font_display.arial with the following errors: fontyourface.font_display.arial:style missing schema, fontyourface.font_display.arial:weight missing schema
Add the missing `style` and `weight` definitions to the `font_display.schema.yml` file. The corrected schema file should include the following:
style:
type: string
label: 'Style'
weight:
type: string
label: 'Weight'
There are no anticipated user interface changes due to this schema update.
No API changes are expected. This update only involves adding missing schema definitions.
The data model will now include the `style` and `weight` attributes for font configurations. This change ensures that the schema is complete and prevents errors during installation and testing.
Active
4.0
Code (general)