Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If an annotation doesn't have a "config_export" item the error message says:
Drupal\Core\Config\Schema\SchemaIncompleteException: Entity type 'Drupal\Core\Config\Entity\ConfigEntityType' is missing 'config_export' definition in its annotation
It would be more useful if the error message indicated what the annotation is for, it would help track down which annotation is missing the item.
Comment | File | Size | Author |
---|---|---|---|
#16 | interdiff_13_16.txt | 894 bytes | anmolgoyal74 |
#16 | drupal-config_export_annotation-3132759-16.patch | 1.92 KB | anmolgoyal74 |
#14 | interdiff_7-13.txt | 1.67 KB | mvonfrie |
#13 | drupal-config_export_annotation-3132759-13.patch | 1.95 KB | mvonfrie |
#7 | interdiff-5-7.txt | 944 bytes | AaronBauman |
Comments
Comment #2
AaronBaumanConfigEntityTypeInterface defines a getClass() method
We should just use that, which will return the specific class with the annotation issue.
One-liner
Comment #4
pavnish CreditAttribution: pavnish at Srijan | A Material+ Company for Drupal India Association commentedComment #5
AaronBaumanUpdate test coverage for this change.
Comment #7
AaronBaumanFixed test coverage.
Comment #8
pavnish CreditAttribution: pavnish at Srijan | A Material+ Company for Drupal India Association commentedComment #9
mvonfrie CreditAttribution: mvonfrie as a volunteer and commentedFixed the patch for 9.0.x.
The method
TestCase::expectDeprecationMessageRegExp()
has been renamed toTestCase::expectDeprecationMessageMatches()
.Comment #10
mvonfrie CreditAttribution: mvonfrie as a volunteer and commentedThe patched code ends with a blank line which somehow was also shown by the IDE in the #7 patch. Removed the second blank line at the end and hope this works now.
Comment #11
mvonfrie CreditAttribution: mvonfrie as a volunteer and commentedComment #12
mvonfrie CreditAttribution: mvonfrie as a volunteer and commentedComment #13
mvonfrie CreditAttribution: mvonfrie as a volunteer and commentedComment #14
mvonfrie CreditAttribution: mvonfrie as a volunteer and commentedSorry for the clutter. It took me a while to find out that the error "trailing whitespace" actually means "windows line ending" which I forgot to change in my editor after a re-installation.
Comment #15
jungleThe test is green, but in reality, it never throws error on specific Interface, it's against specific
Class
.Let's change
Mock_ConfigEntityTypeInterface
toFooConfigEntity
to make sense moreComment #16
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedAddressed #15
Comment #17
jungleThanks, it's ready to me.
Comment #18
jungleComment #19
alexpottCommitted and pushed b2519618b4 to 9.2.x and c8b93171c9 to 9.1.x. Thanks!