Documentation

PreSaveSubscriber extends AbstractPrepareSubscriber
in package

AbstractYes

AutoService is a base-class for defining a service (in Civi's service-container).

Table of Contents

Properties

$supportedOperation  : string

Methods

getSubscribedEvents()  : array<string|int, mixed>
onApiPrepare()  : mixed
applies()  : bool
Check if this subscriber should be applied to the request
modify()  : mixed
Modify the item about to be saved

Properties

$supportedOperation

public string $supportedOperation = 'both'

create|update|both

Methods

getSubscribedEvents()

public static getSubscribedEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results