[FR] add actions hooks
ComfortablyCoding opened this issue · 0 comments
ComfortablyCoding commented
This FR is a solution to the issue discussed in #23 and will add hooks for all actions to enable a user to execture any desired code when those actions are executed.
Sample impl is mentioned in #2901963 - comment
module.exports = ({ env }) => ({
publisher: {
enabled: true,
config:{
hooks:{
'publish:after': (entity, mode) => {
},
'unpublish:after': (entity, mode) => {
}
}
}
}
});