- Issue created by @Liam Morland
- Merge request !352Issue #3513546 by just_like_good_vibes: TypeError: ::findEntityBundleWithField(): $entity_type_id must be of type string, null given → (Merged) created by just_like_good_vibes
- 🇫🇷France just_like_good_vibes PARIS
Hello, thank you for reporting.
When i read for example FieldDefinitionInterface in drupal core, in the comments :
"Returns the ID of the entity type the field is attached to.", "@return string".
But it is not in the signature, only in the comments.That sounds like a very odd and strange case, where a field formatter would not have an entity_type_id to which it is attached.
i tried to patch the function and treat the case of entity_type_id being null, but my guess is that something else won't work at another place.please review
- 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
This patch fixed the problem for us. Thanks!
-
just_like_good_vibes →
committed 30c387fb on 2.0.x
Issue #3513546 by just_like_good_vibes, liam morland: TypeError: ::...
-
just_like_good_vibes →
committed 30c387fb on 2.0.x