Category: drupal

Why are Drupal Entity Events not firing?

namespace Drupalta3mal_utilitiesEventSubscriber; use SymfonyComponentEventDispatcherEventSubscriberInterface; use DrupalCoreEntityEntityTypeEvents; use DrupalCoreEntityEntityTypeEvent; class EntityEvents implements EventSubscriberInterface { public function onCreate(EntityTypeEvent $event) { //Do things on creation } public function onUpdate(EntityTypeEvent $event) { dd(‘on update now’); } public function onDelete(EntityTypeEvent $event) { //Do things on…