‪TYPO3CMS  ‪main
TYPO3\CMS\Webhooks\WebhookTypesRegistry Class Reference

Public Member Functions

WebhookType[] getAvailableWebhookTypes ()
 
 hasWebhookType (string $type)
 
 getWebhookByType (string $type)
 
 getWebhookByEventIdentifier (string $eventIdentifier)
 
 addWebhookType (string $identifier, string $description, string $serviceName, string $factoryMethod, ?string $connectedEvent)
 

Private Attributes

array $webhookTypes = []
 

Detailed Description

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.

not part of TYPO3's Core API

Definition at line 28 of file WebhookTypesRegistry.php.

Member Function Documentation

◆ addWebhookType()

TYPO3\CMS\Webhooks\WebhookTypesRegistry::addWebhookType ( string  $identifier,
string  $description,
string  $serviceName,
string  $factoryMethod,
?string  $connectedEvent 
)

Definition at line 70 of file WebhookTypesRegistry.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ getAvailableWebhookTypes()

WebhookType [] TYPO3\CMS\Webhooks\WebhookTypesRegistry::getAvailableWebhookTypes ( )
Returns
‪WebhookType[]

Definition at line 38 of file WebhookTypesRegistry.php.

References TYPO3\CMS\Webhooks\WebhookTypesRegistry\$webhookTypes.

◆ getWebhookByEventIdentifier()

TYPO3\CMS\Webhooks\WebhookTypesRegistry::getWebhookByEventIdentifier ( string  $eventIdentifier)

Definition at line 60 of file WebhookTypesRegistry.php.

◆ getWebhookByType()

TYPO3\CMS\Webhooks\WebhookTypesRegistry::getWebhookByType ( string  $type)

◆ hasWebhookType()

TYPO3\CMS\Webhooks\WebhookTypesRegistry::hasWebhookType ( string  $type)

Whether a registered webhook type exists

Definition at line 46 of file WebhookTypesRegistry.php.

Referenced by TYPO3\CMS\Webhooks\WebhookTypesRegistry\getWebhookByType().

Member Data Documentation

◆ $webhookTypes

array TYPO3\CMS\Webhooks\WebhookTypesRegistry::$webhookTypes = []
private