- Issue created by @bobburns
This is another case, this happens for entities that don't have a bundle at all. For example, custom content entity.
- Status changed to Needs review
8 months ago 9:46am 30 July 2024
Upgrade to 4.03 throws error
TypeError: Drupal\core_event_dispatcher\Event\Entity\EntityBundleFieldInfoAlterEvent::__construct(): Argument #3 ($bundle) must be of type string|int, false given, called in /var/www/public_html/modules/hook_event_dispatcher/src/Plugin/Factory/EventFactory.php on line 26 in Drupal\core_event_dispatcher\Event\Entity\EntityBundleFieldInfoAlterEvent->__construct() (line 36 of modules/hook_event_dispatcher/modules/core_event_dispatcher/src/Event/Entity/EntityBundleFieldInfoAlterEvent.php)
It appears the below patch would apply however it looks like it was applied directory so I rolled back to my working 4.01 version patched and now I renamed it 4.03
Thankfully I use WinSCP
https://www.drupal.org/project/hook_event_dispatcher/issues/3427642 🐛 EntityBundleFieldInfoAlterEvent::__construct(): Argument #3 ($bundle) must be of type ?string, int given Fixed
Needs review
4.0
Code
This is another case, this happens for entities that don't have a bundle at all. For example, custom content entity.