- Issue created by @kevinquillen
- Status changed to Closed: works as designed
about 1 year ago 6:30am 15 December 2023 - πΊπ¦Ukraine abramm Lutsk
Hi kevinquillen,
That's intentional. Since Drupal 9.1, the event name is not required. Instead, the event class name is used if it's not set.
See\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::dispatch
.
You can simply subscribe toExportEvent::class
, there's no need to maintain separate IDs constants for that.I'm closing this issue as it works as designed, please reopen if you disagree. Thanks!