abstract class PreSaveSubscriber extends AbstractPrepareSubscriber

Properties

string $supportedOperation

Methods

static array
getSubscribedEvents()

No description

onApiPrepare(PrepareEvent $event)

No description

modify(array $item, AbstractAction $request)

Modify the item about to be saved

bool
applies(AbstractAction $request)

Check if this subscriber should be applied to the request

Details

static array getSubscribedEvents()

Return Value

array

at line 56
onApiPrepare(PrepareEvent $event)

Parameters

PrepareEvent $event

at line 78
abstract protected modify(array $item, AbstractAction $request)

Modify the item about to be saved

Parameters

array $item
AbstractAction $request

at line 87
abstract protected bool applies(AbstractAction $request)

Check if this subscriber should be applied to the request

Parameters

AbstractAction $request

Return Value

bool