-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathFormBuilderEvents.php
98 lines (85 loc) · 3.56 KB
/
FormBuilderEvents.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/
namespace FormBuilderBundle;
final class FormBuilderEvents
{
/**
* The FORM_TYPE_OPTIONS event is dispatched after the form builder options has been defined.
* It contains the field name, type and the defined options. You're able to modify the options only.
*
* @see \FormBuilderBundle\Event\Form\FormTypeOptionsEvent
*/
public const FORM_TYPE_OPTIONS = 'form_builder.form_type.build_options';
/**
* The FORM_PRE_SET_DATA event is dispatched at the beginning of the Form::setData() method.
* It contains the form event and also some form builder settings.
*
* @see \FormBuilderBundle\Event\Form\PreSetDataEvent
*
* https://symfony.com/doc/current/form/events.html#a-the-formevents-pre-set-data-event
*/
public const FORM_PRE_SET_DATA = 'form_builder.pre_set_data';
/**
* The FORM_POST_SET_DATA event is dispatched at the end of the Form::setData() method.
* This event is mostly here for reading data after having pre-populated the form.
* It contains the form event and also some form builder settings.
*
* @see \FormBuilderBundle\Event\Form\PostSetDataEvent
*
* http://symfony.com/doc/current/form/events.html#b-the-formevents-post-set-data-event
*/
public const FORM_POST_SET_DATA = 'form_builder.post_set_data';
/**
* The FORM_PRE_SUBMIT event is dispatched at the end of the Form::setData() method.
* This event is mostly here for reading data after having pre-populated the form.
* It contains the form event and also some form builder settings.
*
* @see \FormBuilderBundle\Event\Form\PreSubmitEvent
*
* https://symfony.com/doc/current/form/events.html#a-the-formevents-pre-submit-event
*/
public const FORM_PRE_SUBMIT = 'form_builder.pre_submit';
/**
* The FORM_SUBMIT_SUCCESS event occurs when a frontend form submission was successful.
*
* @see \FormBuilderBundle\Event\SubmissionEvent
*/
public const FORM_SUBMIT_SUCCESS = 'form_builder.submit.success';
/**
* The FORM_DOUBLE_OPT_IN_SUBMIT_SUCCESS event occurs when a frontend double-opt-in form submission was successful.
*
* @see \FormBuilderBundle\Event\DoubleOptInSubmissionEvent
*/
public const FORM_DOUBLE_OPT_IN_SUBMIT_SUCCESS = 'form_builder.double_opt_in.submit.success';
/**
* The FORM_MAIL_PRE_SUBMIT event occurs before sending an email.
*
* @deprecated
*/
public const FORM_MAIL_PRE_SUBMIT = 'form_builder.mail.pre_submit';
/**
* @see \FormBuilderBundle\Event\OutputWorkflow\ChannelSubjectGuardEvent
*/
public const OUTPUT_WORKFLOW_GUARD_SUBJECT_PRE_DISPATCH = 'form_builder.output_workflow.guard.subject.pre_dispatch';
/**
* @see \FormBuilderBundle\Event\OutputWorkflow\OutputWorkflowSignalsEvent
*/
public const OUTPUT_WORKFLOW_SIGNALS = 'form_builder.output_workflow.signals';
/**
* @see \FormBuilderBundle\Event\FormAssembleEvent
*/
public const FORM_ASSEMBLE_PRE = 'form_builder.form_assemble.pre';
/**
* @see \FormBuilderBundle\Event\FormAssembleEvent
*/
public const FORM_ASSEMBLE_POST = 'form_builder.form_assemble.post';
}