Copied!

BeforeRecoverEvent

BeforeRecoverEvent.php : 16
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeRecoverEvent.php : 27
public __construct(TrashItem $trashItem[, Location|null $newParentLocation = null ])

Parameters

Name Type Default value Description
$trashItem TrashItem - -
$newParentLocation Location|null null -

publicgetLocation()

BeforeRecoverEvent.php : 43
public getLocation() : Location

Return values

Location

publicgetNewParentLocation()

BeforeRecoverEvent.php : 38
public getNewParentLocation() : Location|null

Return values

Location|null

publicgetTrashItem()

BeforeRecoverEvent.php : 33
public getTrashItem() : TrashItem

Return values

TrashItem

publichasLocation()

BeforeRecoverEvent.php : 57
public hasLocation() : bool

Return values

bool

publicsetLocation()

BeforeRecoverEvent.php : 52
public setLocation(Location|null $location) : void

Parameters

Name Type Default value Description
$location Location|null - -