Re-add original conditions
This commit is contained in:
parent
e0c27f6649
commit
c0a132a1bb
|
@ -24,7 +24,11 @@ final class UpdateTalkCreatedDateOnSave implements EventSubscriberInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function entityInsertOrUpdate(BaseEntityEvent $event): void {
|
public function entityInsertOrUpdate(BaseEntityEvent $event): void {
|
||||||
if (!$event->getEntity() instanceof Node) {
|
if ($event->getEntity()->getEntityTypeId() != 'node') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($event->getEntity()->bundle() != 'talk') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue