ProcessFileListActionsEvent
New in version 11.4
The PSR-14 event \TYPO3\
is fired after generating the actions for the files and folders listing in the
File > Filelist module.
This event can be used to manipulate the icons/actions, used for the edit control section in the files and folders listing within the File > Filelist module.
Example
<?php
declare(strict_types=1);
namespace MyVendor\MyExtension\FileList\EventListener;
use TYPO3\CMS\Core\Attribute\AsEventListener;
use TYPO3\CMS\Filelist\Event\ProcessFileListActionsEvent;
#[AsEventListener(
identifier: 'my-extension/process-file-list',
)]
final readonly class MyEventListener
{
public function __invoke(ProcessFileListActionsEvent $event): void
{
// do your magic
}
}
New in version 13.0
The PHP attribute \TYPO3\
has been
introduced to tag a PHP class as an event listener. Alternatively, or if you
need to be compatible with older TYPO3 versions, you can also register an
event listener via the Configuration/
file. Switch to
an older version of this page for an example or have a look at the section
Implementing an event listener in your extension.