WebhookTypesRegistry

class \TYPO3\CMS\Webhooks\WebhookTypesRegistry

Registry contains all possible webhooks types which are available to the system To register a webhook your class must be tagged with the Webhook attribute.

Table of Contents

Methods

addWebhookType()  : void
getAvailableWebhookTypes()  : WebhookType[]
getWebhookByEventIdentifier()  : WebhookType|null
getWebhookByType()  : WebhookType
hasWebhookType()  : bool
Whether a registered webhook type exists

Methods

addWebhookType()

public addWebhookType(string $identifier, string $description, string $serviceName, string $factoryMethod, string|null $connectedEvent) : void

Parameters

$identifier : string
$description : string
$serviceName : string
$factoryMethod : string
$connectedEvent : string|null

getWebhookByEventIdentifier()

public getWebhookByEventIdentifier(string $eventIdentifier) : WebhookType|null

Parameters

$eventIdentifier : string

Return values

WebhookType|null

hasWebhookType()

Whether a registered webhook type exists

public hasWebhookType(string $type) : bool

Parameters

$type : string

Return values

bool
On this page