‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\Event\AfterFileCommandProcessedEvent Class Reference

Public Member Functions

 __construct (private readonly array $command, private readonly mixed $result, private readonly string $conflictMode)
mixed getResult ()
string getConflictMode ()

Public Attributes

array< string, function getCommand():array { return $this-> command

Detailed Description

Event that is triggered after a file command has been processed. Can be used to perform additional tasks for specific commands. For example, trigger a custom indexer after a file has been uploaded.

Definition at line 25 of file AfterFileCommandProcessedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\Event\AfterFileCommandProcessedEvent::__construct ( private readonly array  $command,
private readonly mixed  $result,
private readonly string  $conflictMode 

Definition at line 27 of file AfterFileCommandProcessedEvent.php.

Member Function Documentation

◆ getConflictMode()

string TYPO3\CMS\Core\Resource\Event\AfterFileCommandProcessedEvent::getConflictMode ( )
‪string The current conflict mode
See also

Definition at line 63 of file AfterFileCommandProcessedEvent.php.

◆ getResult()

mixed TYPO3\CMS\Core\Resource\Event\AfterFileCommandProcessedEvent::getResult ( )
‪mixed The result - Depending on the performed action, this could e.g. be a File or just a boolean.

Definition at line 54 of file AfterFileCommandProcessedEvent.php.

Member Data Documentation

◆ command

array<string, function getCommand(): array { return $this-> TYPO3\CMS\Core\Resource\Event\AfterFileCommandProcessedEvent::command

A single command, e.g.

'upload' => [
'target' => '1:/some/folder/'
'data' => '1'
‪array<string, array<string, mixed>>

Definition at line 47 of file AfterFileCommandProcessedEvent.php.