[TASK] Use signal/slot instead of hook in 6.2

Change-Id: I3340adeb519e3f5cf907f01e9baa26ce6f08ffd8
Resolves: #56593
Reviewed-on: https://review.typo3.org/28104
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers