ProcessFileListActionsEvent

New in version 11.4

The PSR-14 event \TYPO3\CMS\Core\Configuration\Event\ProcessFileListActionsEvent 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

Registration of the event listener in the extension's Services.yaml:

EXT:my_extension/Configuration/Services.yaml
services:
  # Place here the default dependency injection configuration

  MyVendor\MyExtension\FileList\EventListener\MyEventListener:
    tags:
      - name: event.listener
        identifier: 'my-extension/process-file-list'
Copied!

Read how to configure dependency injection in extensions.

The corresponding event listener class:

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

declare(strict_types=1);

namespace MyVendor\MyExtension\FileList\EventListener;

use TYPO3\CMS\Filelist\Event\ProcessFileListActionsEvent;

final class MyEventListener
{
    public function __invoke(ProcessFileListActionsEvent $event): void
    {
        // do your magic
    }
}
Copied!

API

class \TYPO3\CMS\Filelist\Event\ ProcessFileListActionsEvent

Event fired to modify icons rendered for the file listings

getResource ( )
returntype

TYPO3\CMS\Core\Resource\ResourceInterface

isFile ( )
returntype

bool

getActionItems ( )
returntype

array

setActionItems ( array $actionItems)
param array $actionItems

the actionItems