Copied!

BeforeRecoverEvent

BeforeRecoverEvent.php : 16
Final
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

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetLocation()

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

Parameters

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

publicstopPropagation()

Event.php : 50

Stops the propagation of the event to further event listeners.

public stopPropagation() : void

If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().