2021-10-17 17:34:55 +02:00
|
|
|
***
|
|
|
|
|
2021-08-25 16:09:31 +02:00
|
|
|
title: Hooks API
|
|
|
|
for: developers
|
|
|
|
about: Documents the available lifecycle hooks in Core and how to use them
|
2021-10-17 17:34:55 +02:00
|
|
|
--------------------------------------------------------------------------
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
A **hook** is a lifecycle event.
|
|
|
|
|
|
|
|
You can register a method for a hook. When the hook is triggered, your method will be
|
|
|
|
called. It will receive two parameters:
|
|
|
|
|
2021-10-17 17:34:55 +02:00
|
|
|
* An object relevant to the hook (see the specific hook for details)
|
|
|
|
* Data passed when the hook was registered (optional)
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
Below is a list of all available hooks:
|
|
|
|
|
|
|
|
<ReadMore list />
|