Documentation

ValidateFieldsSubscriber extends AbstractPrepareSubscriber
in package

Validate field inputs based on annotations in the action class

Tags
service

civi.api4.validateFields

Table of Contents

Methods

checkType()  : bool
Validate variable type on input
getSubscribedEvents()  : array<string|int, mixed>
onApiPrepare()  : mixed

Methods

checkType()

Validate variable type on input

public static checkType(mixed $value, mixed $types) : bool
Parameters
$value : mixed
$types : mixed
Tags
throws
CRM_Core_Exception
Return values
bool

getSubscribedEvents()

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

        
On this page

Search results