20 'class' => self::class,
23 PageUpdatedEvent::TYPE
34 $mainSlot = $newRevision->getSlot( SlotRecord::MAIN );
37 || $event->
hasFlag( PageUpdatedEvent::FLAG_MOVED ) ) &&
38 !$newRevision->isDeleted( RevisionRecord::DELETED_TEXT )
45 $mainSlot->getContent()
Base class for classes that implement DomainEventSubscriber.
Domain event representing a page edit.
hasFlag(string $name)
Checks flags describing the page update.
getPage()
Returns the page that was edited.
isModifiedSlot(string $slotRole)
Whether the given slot was modified by the edit.
getNewRevision()
The revision that became the current one because of the edit.