Event or hook not fired on Hub Subscribe

Created on 1 December 2023, 12 months ago

Problem/Motivation

Modules should be able to hook into the creation of a subscription to generate notifications or other actions. Normally with most entities this can be done with hook_ENTITY_TYPE_insert

Steps to reproduce

Creating a hook_subscription_insert doesn't do anything, as Subscriptions don't implement entity API

Proposed resolution

We can:

  • Refactor Subscription to use entity API (probably a bad idea)
  • Create a new event dispatcher to allow eventsubscribers to act on new subscription on the hub site
✨ Feature request
Status

Active

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Fool2

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024