Skip to content
Snippets Groups Projects
Commit 00d15c21 authored by Josef Glatz's avatar Josef Glatz Committed by Daniel Siepmann
Browse files

[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's avatarDaniel Siepmann <coding@daniel-siepmann.de>
Reviewed-by: Daniel Siepmann's avatarDaniel Siepmann <coding@daniel-siepmann.de>
parent d1370d2c
Branches
Tags
No related merge requests found
...@@ -27,12 +27,13 @@ Example how to register the event listener in your own extension: ...@@ -27,12 +27,13 @@ Example how to register the event listener in your own extension:
.. code-block:: yaml .. code-block:: yaml
Vendor\MyExtension\Backend\View\PageLayoutViewDrawEmptyColposContent: services:
tags: Vendor\MyExtension\Backend\View\PageLayoutViewDrawEmptyColposContent:
- name: event.listener tags:
identifier: 'myColposListener' - name: event.listener
before: 'backend-empty-colpos' identifier: 'myColposListener'
event: TYPO3\CMS\Backend\View\Event\AfterSectionMarkupGeneratedEvent 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 With :yaml:`before` and :yaml:`after`, you can make sure your own listener is
executed before or after the given identifiers. executed before or after the given identifiers.
...@@ -41,6 +42,9 @@ executed before or after the given identifiers. ...@@ -41,6 +42,9 @@ executed before or after the given identifiers.
.. code-block:: php .. code-block:: php
<?php
namespace Vendor\MyExtension\Backend\View;
class PageLayoutViewDrawEmptyColposContent class PageLayoutViewDrawEmptyColposContent
{ {
public function __invoke(AfterSectionMarkupGeneratedEvent $event): void public function __invoke(AfterSectionMarkupGeneratedEvent $event): void
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment