ProcessFileListActionsEvent

New in version 11.4.

The \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.

Registration of the event in the Services.yaml:

MyVendor\MyPackage\FileList\MyEventListener:
  tags:
    - name: event.listener
      identifier: 'my-package/filelist/my-event-listener'

The corresponding event listener class:

use TYPO3\CMS\Filelist\Event\ProcessFileListActionsEvent;

class MyEventListener {

    public function __invoke(ProcessFileListActionsEvent $event): void
    {
        // do your magic
    }

}

API

getResource()

| ReturnType: \TYPO3\CMS\Core\Resource\ResourceInterface |

 

isFile()

| ReturnType: boolean |

 

getActionItems()

| ReturnType: void |

 

setActionItems(array $actionItems)

| Arguments: array $actionItems | ReturnType: void |