Skip to content

Module Hooks Implementation #1133

Answered by grisha87
grisha87 asked this question in Ideas
Nov 25, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Thanks @mgordel for your feedback!

Does this mean they are queued and executed in the order they are added?

They are lined up in an array of callbacks and are executed in the order they are added. When used by plugins, they order of adding plugins will also determine the order of adding the hooks.

So hooks provide entities to the user, in which they can define behaviors (at a specified moment in the module), and then the effect of this behavior directly affects the logic of the module. The effect of the hook's operation will be only a change in the state of the entity which will cause a side effect by the module during further execution.
Is such a change in the state of the same entity…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@grisha87
Comment options

Answer selected by mgordel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants