AfterFileListRowPreparedEvent 

The PSR-14 event \TYPO3\CMS\Filelist\Event\AfterFileListRowPreparedEvent is fired after a file or folder row has been fully prepared for the Media module, just before it is rendered into the final table row markup.

Unlike ProcessFileListActionsEvent, which only allows the action icons in the control column to be modified, this event provides access to the already-rendered data of every column in the row (for example name, size or any additional metadata columns added via the column selector), as well as the row's HTML tag attributes. This mirrors the equivalent event that is already available for the classic record list: AfterRecordListRowPreparedEvent .

Example: decorate a column value in the file list 

The following listener decorates the already-rendered values of columns in each row, without having to resort to hooks or class-name-based reflection workarounds.

EXT:my_extension/Classes/FileList/EventListener/DecorateFileListColumnEventListener.php
<?php

declare(strict_types=1);

namespace MyVendor\MyExtension\FileList\EventListener;

use TYPO3\CMS\Core\Attribute\AsEventListener;
use TYPO3\CMS\Filelist\Event\AfterFileListRowPreparedEvent;

#[AsEventListener(
    identifier: 'my-extension/decorate-file-list-column',
)]
final readonly class DecorateFileListColumnEventListener
{
    public function __invoke(AfterFileListRowPreparedEvent $event): void
    {
        $data = $event->getData();
        // Modify the already-rendered value of a specific column
        $data['my_column'] = 'My custom value';
        $event->setData($data);
    }
}
Copied!

API 

class AfterFileListRowPreparedEvent
Fully qualified name
\TYPO3\CMS\Filelist\Event\AfterFileListRowPreparedEvent

An event to modify the rendered row data for a file or folder in the File List.

getResource ( )
Returns
TYPO3CMSCoreResourceResourceInterface
getData ( )
Returns
array
setData ( array $data)
param $data

the data

getFileList ( )
Returns
TYPO3CMSFilelistFileList
getAttributes ( )
Returns
array
setAttributes ( array $attributes)
param $attributes

the attributes