class WrapperAdapter implements EventSubscriberInterface

This is a wrapper for the legacy "API Wrapper" interface which allows wrappers to run through the new kernel. It translates from dispatcher events ('civi.api.prepare', 'civi.api.respond') to wrapper calls ('fromApiInput', 'toApiOutput').

Properties

protected API_Wrapper) $defaults

Methods

static array
getSubscribedEvents()

No description

__construct(array $defaults = array())

No description

onApiPrepare( $event)

No description

onApiRespond( $event)

No description

API_Wrapper>
getWrappers(array $apiRequest)

No description

Details

at line 43
static array getSubscribedEvents()

Return Value

array

at line 59
__construct(array $defaults = array())

Parameters

array $defaults array(\API_Wrapper).

at line 67
onApiPrepare( $event)

Parameters

$event API preparation event.

at line 82
onApiRespond( $event)

Parameters

$event API response event.

at line 99
API_Wrapper> getWrappers(array $apiRequest)

Parameters

array $apiRequest The full API request.

Return Value

API_Wrapper>