From 00d15c21565d0bb1c15c8c9c528f93c5b7fb359b Mon Sep 17 00:00:00 2001 From: Josef Glatz <josefglatz@gmail.com> Date: Thu, 9 Apr 2020 15:49:54 +0200 Subject: [PATCH] [DOCS] Complete the examples of AfterSectionMarkupGeneratedEvent Releases: master Resolves: #90990 Related: #88921 Change-Id: I9a3997bde020b500a1bd1a6712ae0e405001a452 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64110 Tested-by: Daniel Siepmann <coding@daniel-siepmann.de> Reviewed-by: Daniel Siepmann <coding@daniel-siepmann.de> --- ...chContentIntoTheColumnsInTheBackendLayout.rst | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/typo3/sysext/core/Documentation/Changelog/10.3/Feature-88921-NewEventInThePageLayoutViewClassToEnrichContentIntoTheColumnsInTheBackendLayout.rst b/typo3/sysext/core/Documentation/Changelog/10.3/Feature-88921-NewEventInThePageLayoutViewClassToEnrichContentIntoTheColumnsInTheBackendLayout.rst index 80350383283f..0a869ba3829c 100644 --- a/typo3/sysext/core/Documentation/Changelog/10.3/Feature-88921-NewEventInThePageLayoutViewClassToEnrichContentIntoTheColumnsInTheBackendLayout.rst +++ b/typo3/sysext/core/Documentation/Changelog/10.3/Feature-88921-NewEventInThePageLayoutViewClassToEnrichContentIntoTheColumnsInTheBackendLayout.rst @@ -27,12 +27,13 @@ Example how to register the event listener in your own extension: .. code-block:: yaml - Vendor\MyExtension\Backend\View\PageLayoutViewDrawEmptyColposContent: - tags: - - name: event.listener - identifier: 'myColposListener' - before: 'backend-empty-colpos' - event: TYPO3\CMS\Backend\View\Event\AfterSectionMarkupGeneratedEvent + services: + Vendor\MyExtension\Backend\View\PageLayoutViewDrawEmptyColposContent: + tags: + - name: event.listener + identifier: 'myColposListener' + before: 'backend-empty-colpos' + event: TYPO3\CMS\Backend\View\Event\AfterSectionMarkupGeneratedEvent With :yaml:`before` and :yaml:`after`, you can make sure your own listener is executed before or after the given identifiers. @@ -41,6 +42,9 @@ executed before or after the given identifiers. .. code-block:: php + <?php + namespace Vendor\MyExtension\Backend\View; + class PageLayoutViewDrawEmptyColposContent { public function __invoke(AfterSectionMarkupGeneratedEvent $event): void -- GitLab