| 1 | <?php |
| 2 | |
| 3 | namespace Civi\Token; |
| 4 | |
| 5 | class Events { |
| 6 | /** |
| 7 | * Create a list of supported tokens. |
| 8 | * |
| 9 | * @see \Civi\Token\Event\TokenRegisterEvent |
| 10 | */ |
| 11 | const TOKEN_REGISTER = 'civi.token.list'; |
| 12 | |
| 13 | /** |
| 14 | * Create a list of supported tokens. |
| 15 | * |
| 16 | * @see \Civi\Token\Event\TokenValueEvent |
| 17 | */ |
| 18 | const TOKEN_EVALUATE = 'civi.token.eval'; |
| 19 | |
| 20 | /** |
| 21 | * Perform post-processing on a rendered message. |
| 22 | * |
| 23 | * WARNING: It is difficult to develop robust, |
| 24 | * secure code using this stage. However, we need |
| 25 | * to support it during a transitional period |
| 26 | * while the token logic is reorganized. |
| 27 | * |
| 28 | * @see \Civi\Token\Event\TokenRenderEvent |
| 29 | */ |
| 30 | const TOKEN_RENDER = 'civi.token.render'; |
| 31 | |
| 32 | } |