Documentation

PermissionCheck
in package
implements EventSubscriberInterface

For any API requests that correspond to a Doctrine entity ($apiRequest['doctrineClass']), check permissions specified in Civi\API\Annotation\Permission.

Table of Contents

Interfaces

EventSubscriberInterface

Methods

checkACLPermission()  : bool
Check API for ACL permission.
getSubscribedEvents()  : array<string|int, mixed>
onApiAuthorize()  : mixed

Methods

checkACLPermission()

Check API for ACL permission.

public checkACLPermission(array<string|int, mixed> $apiRequest) : bool
Parameters
$apiRequest : array<string|int, mixed>
Return values
bool

getSubscribedEvents()

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

        
On this page

Search results