.. include:: /Includes.rst.txt .. index:: Events; ModifyRedirectManagementControllerViewDataEvent .. _ModifyRedirectManagementControllerViewDataEvent: =============================================== ModifyRedirectManagementControllerViewDataEvent =============================================== .. versionadded:: 12.3 The PSR-14 event :php:`\TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent` allows extensions to modify or enrich view data for :t3src:`redirects/Classes/Controller/ManagementController.php`. This makes it possible to display more or other information along the way. For example, this event can be used to add additional information to current page records. Therefore, it can be used to generate custom data, directly assigning to the view. With :ref:`overriding the backend view template ` via :ref:`page TSconfig ` this custom data can be displayed where it is needed and rendered the way it is wanted. Example ======= Registration of the event listener in the extension's :file:`Services.yaml`: .. literalinclude:: _ModifyRedirectManagementControllerViewDataEvent/_Services.yaml :language: yaml :caption: EXT:my_extension/Configuration/Services.yaml Read :ref:`how to configure dependency injection in extensions `. The corresponding event listener class: .. literalinclude:: _ModifyRedirectManagementControllerViewDataEvent/_MyEventListener.php :language: php :caption: EXT:my_extension/Classes/Redirects/EventListener/MyEventListener.php API === .. include:: /CodeSnippets/Events/Redirects/ModifyRedirectManagementControllerViewDataEvent.rst.txt