| Method | Description | Returns |
|---|---|---|
| isTargetingDeletedRecord() | Checks whether the entity event is targeting a deleted record | bool |
| getTargetRecordEntity() | Return target entity class name for record selection. In some cases this is different from the entity triggering the event. E.g. hooks targeting Form submissions must use Form records. TODO: This is a hotfix and needs to be implemented properly | string |
| getId() | int | |
| getEntity() | string | |
| getRecordId() | int | |
| getParentRecordId() | int | |
| getMethod() | string | |
| getProperties() | string | |
| getCreated() | Date the record was created. | DateTime |
| getModified() | Last modification date for the record. | DateTime |
| getHook() | Hook | |
| isNewRecord() | Check if the record is a new record | bool |
| isHierarchicalModel() | Check whether a model is a hierarchical model, i.e. can have children | bool |
| isVersionedModel() | Check whether a model is versioned | bool |
Hooks\Models\Frontend\EntityEvent
This class is used to store information about which entity changes trigger a hook