26 'class' => self::class,
29 PageLatestRevisionChangedEvent::TYPE,
30 PageDeletedEvent::TYPE,
40 $newRevision = $event->getLatestRevisionAfter();
41 $mainSlot = $newRevision->isDeleted( RevisionRecord::DELETED_TEXT )
42 ? null : $newRevision->getSlot( SlotRecord::MAIN );
46 $event->
hasCause( PageLatestRevisionChangedEvent::CAUSE_MOVE ) ||
52 $mainSlot ? $mainSlot->getContent() : null
67 $event->getDeletedPage(),
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.
hasCause(string $cause)
Checks whether the update had the given cause.
getPageId()
Returns the ID of the page affected by the change.
Domain event representing a change to the page's latest revision.
getPageRecordAfter()
Returns a PageRecord representing the state of the page after the change, or null if the page no long...
isModifiedSlot(string $slotRole)
Whether the given slot was modified by the page update.
Listener interface for PageDeletedEvents.
Listener interface for PageLatestRevisionChangedEvents.