26 'class' => self::class,
29 PageRevisionUpdatedEvent::TYPE,
30 PageDeletedEvent::TYPE,
41 $mainSlot = $newRevision->isDeleted( RevisionRecord::DELETED_TEXT )
42 ? null : $newRevision->getSlot( SlotRecord::MAIN );
46 $event->
hasCause( PageRevisionUpdatedEvent::CAUSE_MOVE ) ||
52 $mainSlot ? $mainSlot->getContent() : null
Base class for event ingress objects.
isReconciliationRequest()
Determines whether this is a reconciliation event, triggered artificially in order to give listeners ...
Domain event representing page deletion.
getDeletedPage()
Returns the page that was deleted, as it was before the deletion.
hasCause(string $cause)
Checks whether the update had the given cause.
getPageId()
Returns the ID of the page affected by the change.
Listener interface for PageDeletedEvents.