Skip to content

Commit ee50ec7

Browse files
committed
[TASK] Update commands.json
Releases: main
1 parent f874939 commit ee50ec7

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

Documentation/CodeSnippets/Config/Api/Events/EventsForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
],
4040
[
4141
'action' => 'createPhpClassDocs',
42-
'class' => \TYPO3\CMS\Form\Event\BeforeRenderableIsValidatedEvent::class,
42+
'class' => \TYPO3\CMS\Form\Event\BeforeRenderableIsRemovedFromFormEvent::class,
4343
'targetFileName' => 'CodeSnippets/Events/Form/BeforeRenderableIsRemovedFromFormEvent.rst.txt',
4444
'withCode' => false,
4545
],
Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets
22
.. php:namespace:: TYPO3\CMS\Form\Event
33
4-
.. php:class:: BeforeRenderableIsValidatedEvent
4+
.. php:class:: BeforeRenderableIsRemovedFromFormEvent
55
6-
Listeners to this Event will be able to modify the submitted value
7-
8-
.. php:attr:: value
9-
:public:
10-
11-
.. php:attr:: formRuntime
12-
:readonly:
13-
:public:
6+
Listeners to this Event will be able to:
7+
- Get the renderable that is about to be removed from the form
8+
- Stop the deletion process by setting preventRemoval to true
9+
- Add custom logic, e.g. cleanup tasks, before deletion
1410

1511
.. php:attr:: renderable
1612
:readonly:
1713
:public:
1814

19-
.. php:attr:: request
20-
:readonly:
15+
.. php:attr:: preventRemoval
2116
:public:
17+
18+
.. php:method:: isPropagationStopped()
19+
:returns: `bool`

0 commit comments

Comments
 (0)