ExtbaseHistoryTracker
Read onlyYes
FinalYes
Event listener that automatically tracks history for all Extbase domain entities by listening to Extbase persistence events and storing them in sys_history.
Table of Contents
Methods
- __construct() : mixed
- onEntityPersisted() : void
- onEntityRemoved() : void
- onEntityUpdated() : void
Methods
__construct()
public
__construct(DataMapFactory $dataMapFactory, Context $context, TcaSchemaFactory $tcaSchemaFactory, Features $features) : mixed
Parameters
- $dataMapFactory : DataMapFactory
- $context : Context
- $tcaSchemaFactory : TcaSchemaFactory
- $features : Features
onEntityPersisted()
public
onEntityPersisted(EntityAddedToPersistenceEvent $event) : void
Parameters
- $event : EntityAddedToPersistenceEvent
Attributes
- #[AsEventListener]
- 'extbase-history-tracker-persisted'
onEntityRemoved()
public
onEntityRemoved(EntityRemovedFromPersistenceEvent $event) : void
Parameters
- $event : EntityRemovedFromPersistenceEvent
Attributes
- #[AsEventListener]
- 'extbase-history-tracker-removed'
onEntityUpdated()
public
onEntityUpdated(EntityUpdatedInPersistenceEvent $event) : void
Parameters
- $event : EntityUpdatedInPersistenceEvent
Attributes
- #[AsEventListener]
- 'extbase-history-tracker-updated'