public function WebhookDispatcherInterface::loadMultipleByEvent in Webhooks 8
Load multiple WebhookConfigs by event.
Parameters
string $event: An event string in the form of entity:entity_type:action, e.g. 'entity:user:create', 'entity:user:update' or 'entity:user:delete'.
string $type: A type string, e.g. 'outgoing' or 'incoming'.
Return value
\Drupal\webhooks\Entity\WebhookConfigInterface[] An array of WebhookConfig entities.
1 method overrides WebhookDispatcherInterface::loadMultipleByEvent()
- WebhooksService::loadMultipleByEvent in src/
WebhooksService.php - Load multiple WebhookConfigs by event.
File
- src/
WebhookDispatcherInterface.php, line 26
Class
- WebhookDispatcherInterface
- Webhook dispatchers control triggering outbound webhook events.
Namespace
Drupal\webhooksCode
public function loadMultipleByEvent($event, $type = 'outgoing');