Hooks are method call added in the code at specific locations in the App.
You need to the add the add_hooks
parameter to the schema.
Supported Hooks are:
Interface Hooks:
- afterFormObj
- beforeList
- beforeListTr
- beforeListSearch
- afterListSearch
- afterList
- child.beforeChildSearch
- child.beforeList
- child.startListTr
- child.beforeListTr
- selectbox
- selectboxData
Service Hooks:
- beforeSave
- afterSave
- beforeDelete
- afterDelete
- BeforeFileUpload
- afterFileUpload
- afterTryLog
- beforeTryLog
All standard build includes Wrapper files for the Template model with the full definition of all hooks. Use it as method template!
- .admin/src/App/Interfaces/TemplateFormWrapper.php
- .admin/src/App/Services/TemplateServiceWrapper.php