- Issue created by @adamps
- @adamps opened merge request.
Automatically closed - issue fixed for 2 weeks with no activity.
Improvements based on discussions of the the likely direction for Drupal Core mailer, and experience of using the current interfaces.
Instead of type/sub-type/entity_id have a single field tag, like symfony. The 3-way split isn't relevant to code building and sending emails rather it's mostly for Mailer Policy, which likely won't ever be in Core. So we just keep it within the mailer policy code. The value that was set as the entity can instead just be a normal parameter.
EmailInterface::setBodyEntity()
is confusing, really it is just setting a variable by rendering an entity. Hence rename to setEntityVariable()
.
New convenience function setEntityParam()
which automatically uses the entity type as the key, as per the recommendation.
Active
2.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.