AfterFileCommandProcessedEvent

Read onlyYes
FinalYes

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.

Table of Contents

Methods

__construct()  : mixed
getCommand()  : array<string, array<string, mixed>>
A single command, e.g.
getConflictMode()  : string
getResult()  : mixed

Methods

__construct()

public __construct(array<string|int, mixed> $command, mixed $result, string $conflictMode) : mixed
Parameters
$command : array<string|int, mixed>
$result : mixed
$conflictMode : string

getCommand()

A single command, e.g.

public getCommand() : array<string, array<string, mixed>>
'upload' => [
    'target' => '1:/some/folder/'
    'data' => '1'
]
Return values
array<string, array<string, mixed>>

getConflictMode()

public getConflictMode() : string
Tags
see
DuplicationBehavior
Return values
string

The current conflict mode

getResult()

public getResult() : mixed
Return values
mixed

The result - Depending on the performed action, this could e.g. be a File or just a boolean.


        
On this page

Search results