Skip to content
Snippets Groups Projects
Commit a1eba395 authored by Chris Müller's avatar Chris Müller Committed by Stefan Bürk
Browse files

[DOCS] Fix code example and docblock for ModifyImageSourceCollectionEvent

Resolves: #102718
Related: #102624
Releases: main
Change-Id: I50ee2b8bbbc472f0fec330adc88acee1e78b540f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82278


Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 65b979db
Branches
Tags
No related merge requests found
......@@ -43,7 +43,7 @@ registration:
final class ModifyImageSourceCollectionEventListener
{
#[AsEventListener]
public function __invoke(AfterGetDataResolvedEvent $event): void
public function __invoke(ModifyImageSourceCollectionEvent $event): void
{
$event->setSourceCollection('<source src="bar-file.jpg" media="(max-device-width: 600px)">');
}
......
......@@ -20,7 +20,7 @@ namespace TYPO3\CMS\Frontend\ContentObject\Event;
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
/**
* Listeners are able to modify the initialized ContentObjectRenderer instance
* Listeners are able to enrich the final source collection result
*/
final class ModifyImageSourceCollectionEvent
{
......
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