Event dispatching in D10

Created on 8 August 2023, over 1 year ago
Updated 17 August 2023, about 1 year ago

Problem/Motivation

Errors are thrown on Drupal 10 when deleting any entity and 'mentions' module is enabled.

Steps to reproduce

1. Install this module on a drupal 10 website.
2. Try to either delete any entity so that 'mentions_entity_delete()' is fired

Proposed resolution

1. Update code to use 'Drupal\Component\EventDispatcher\Event' instead of 'Symfony\Component\EventDispatcher\Event'
2. Update dispatch calls. Event object should come first.

Remaining tasks

...

User interface changes

...

API changes

None. Though this change is not compatible with versions before drupal 10.

Data model changes

...

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇷Greece lunatic

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024