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 80350383283faac901486b8d5900713e23dafb6a..0a869ba3829c213e4cee6391dde4f28cd2c98593 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