forked from efficience-it/certification-symfony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
form_events.yaml
104 lines (104 loc) · 5.02 KB
/
form_events.yaml
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
99
100
101
102
103
104
questions:
-
uuid: 1eebf878-8b9c-6566-9d0b-99d84c92580c
question: 'If you need to modify the data given during pre-population or modify a form depending on the pre-populated data (adding or removing fields dynamically), to which event your code should be hooked?'
answers:
- {value: 'FormEvents::PRE_SUBMIT', correct: false}
- {value: 'FormEvents::PRE_SET_DATA', correct: true}
- {value: 'FormEvents::POST_SUBMIT', correct: false}
- {value: 'FormEvents::SUBMIT', correct: false}
- {value: 'FormEvents::POST_SET_DATA', correct: false}
help: 'https://symfony.com/doc/current/form/events.html'
-
uuid: 1eebf878-8b9d-610a-8c96-99d84c92580c
question: 'What is returned by the getData() method of PreSubmitEvent ?'
answers:
- {value: 'the norm data of the form', correct: false}
- {value: 'the view data of the form', correct: false}
- {value: 'The model data of the form', correct: false}
- {value: 'an array', correct: true}
help: 'https://symfony.com/doc/current/form/events.html'
-
uuid: 1eebf878-8b9d-66a0-b95b-99d84c92580c
question: 'Which method should you use to register a new event listener on a FormBuilder instance?'
answers:
- {value: addEventListener, correct: true}
- {value: registerListener, correct: false}
- {value: createListener, correct: false}
- {value: addListener, correct: false}
help: 'https://symfony.com/doc/current/components/form/form_events.html'
-
uuid: 1eebf878-8b9f-6ae0-9b3b-99d84c92580c
question: 'Which form event exist?'
answers:
- {value: 'FormEvents::PRE_SET_DATA', correct: true}
- {value: 'FormEvents::SET_DATA', correct: false}
- {value: 'FormEvents::POST_SET_DATA', correct: true}
- {value: 'FormEvents::PRE_SUBMIT', correct: true}
- {value: 'FormEvents::SUBMIT', correct: true}
- {value: 'FormEvents::POST_SUBMIT', correct: true}
- {value: 'FormEvents::POST_REQUEST', correct: false}
- {value: 'FormEvents::REQUEST', correct: false}
- {value: 'FormEvents::PRE_REQUEST', correct: false}
help: 'https://symfony.com/doc/current/form/events.html'
-
uuid: 1eebf878-8b9f-6b26-b403-99d84c92580c
question: 'What data is inside FormEvent object at FormEvents::PRE_SET_DATA?'
answers:
- {value: 'Model data', correct: true}
- {value: 'Normalized data', correct: false}
- {value: 'Request data', correct: false}
- {value: 'View data', correct: false}
help: 'https://symfony.com/doc/current/form/events.html#registering-event-listeners-or-event-subscribers'
-
uuid: 1eebf878-8b9f-6b6c-aab9-99d84c92580c
question: 'What data is inside FormEvent object at FormEvents::PRE_SUBMIT?'
answers:
- {value: 'Model data', correct: false}
- {value: 'Normalized data', correct: false}
- {value: 'Request data', correct: true}
help: 'https://symfony.com/doc/current/form/events.html#registering-event-listeners-or-event-subscribers'
-
uuid: 1eebf878-8b9f-6bbc-acb8-99d84c92580c
question: 'What data is inside FormEvent object at FormEvents::POST_SET_DATA?'
answers:
- {value: 'Model data', correct: true}
- {value: 'Request data', correct: false}
- {value: 'View data', correct: false}
help: 'https://symfony.com/doc/current/form/events.html#registering-event-listeners-or-event-subscribers'
-
uuid: 1eebf878-8b9f-6c02-865f-99d84c92580c
question: 'What data is inside FormEvent object at FormEvents::SUBMIT?'
answers:
- {value: 'Model data', correct: false}
- {value: 'Normalized data', correct: true}
- {value: 'Request data', correct: false}
- {value: 'View data', correct: false}
help: 'https://symfony.com/doc/current/form/events.html#registering-event-listeners-or-event-subscribers'
-
uuid: 1eebf878-8b9f-6c48-b0f4-99d84c92580c
question: 'What data is inside FormEvent object at FormEvents::POST_SUBMIT?'
answers:
- {value: 'Model data', correct: false}
- {value: 'Normalized data', correct: false}
- {value: 'Request data', correct: false}
- {value: 'View data', correct: true}
help: 'https://symfony.com/doc/current/form/events.html#registering-event-listeners-or-event-subscribers'
-
uuid: 1eebf878-8ba0-608a-be0c-99d84c92580c
question: 'Which form event does not exist?'
answers:
- {value: 'FormEvents::PRE_SET_DATA', correct: false}
- {value: 'FormEvents::SUBMIT', correct: false}
- {value: 'FormEvents::POST_SUBMIT', correct: false}
- {value: 'FormEvents::SET_DATA', correct: true}
help: 'https://symfony.com/doc/current/form/events.html'
-
uuid: 1eebf878-8ba2-6ede-a44b-99d84c92580c
question: 'What is returned by the getData() method of PreSubmitEvent ?'
answers:
- {value: 'The model data of the form', correct: false}
- {value: 'the norm data of the form', correct: false}
- {value: 'an array', correct: true}
- {value: 'the view data of the form', correct: false}
help: 'https://symfony.com/doc/current/form/events.html'