public function WebhookDispatcherInterface::triggerEvent in Webhooks 8
Trigger all webhook subscriptions associated with the given event.
Parameters
\Drupal\webhooks\Webhook $webhook: The webhook object.
string $event: Identifier of a particular webhook event, e.g. entity:node:create, entity:user:update or entity:taxonomy_term:delete.
1 method overrides WebhookDispatcherInterface::triggerEvent()
- WebhooksService::triggerEvent in src/
WebhooksService.php - Trigger all webhook subscriptions associated with the given event.
File
- src/
WebhookDispatcherInterface.php, line 37
Class
- WebhookDispatcherInterface
- Webhook dispatchers control triggering outbound webhook events.
Namespace
Drupal\webhooksCode
public function triggerEvent(Webhook $webhook, $event);