APIv3SchemaAdapter
class APIv3SchemaAdapter implements EventSubscriberInterface
This class determines what fields are allowed for a request and validates that the fields are provided correctly.
Methods
static array
getSubscribedEvents()
No description
array
getDefaults($fields)
Return array of defaults for the given API (function is a wrapper on getfields).
array
getRequired($fields)
Return array of required fields for the given API (function is a wrapper on getfields).
Details
at line 42
static array
getSubscribedEvents()
at line 57
onApiPrepare(PrepareEvent $event)
at line 83
onApiPrepare_validate(Event $event)
at line 102
array
getDefaults($fields)
Return array of defaults for the given API (function is a wrapper on getfields).
at line 118
array
getRequired($fields)
Return array of required fields for the given API (function is a wrapper on getfields).