Allow to select recipients

Created on 23 February 2024, 4 months ago
Updated 11 March 2024, 4 months ago

Need possibility of message recipient selection. And it should be flexible.

So, I suggest adding a plugin system for that. Simple plugins with one required method that has an entity on the input and returns a list of users based on entity.
For ex. plugin "Entity owner" to send message to entity owner.

  public function getRecipients(ContentEntityInterface $entity): array {
    if ($entity instanceof EntityOwnerInterface) {
      return [$entity->getOwner()];
    }

    return [];
  }
✨ Feature request
Status

Fixed

Version

1.0

Component

Code

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024