Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When using the HTML test mailer plugin, it will serialize the simplenews_mail param which is (probably) a MailEntity object. MailEntity has a reference to the custom cache which may or may not be serializable, IIUC.
Proposed resolution
Remove the reference to the cache when serializing.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#8 | mailentity-serializable-2626358-8.patch | 627 bytes | Arla |
| |||
#5 | mailentity-serializable-2626358-5.patch | 639 bytes | Arla |
| |||
#3 | mailentity-serializable-2626358-3.patch | 418 bytes | Arla |
|
Comments
Comment #2
ArlaComment #3
ArlaComment #4
ArlaComment #5
ArlaOh, the cache is a service, so we can
use DependencySerializationTrait
.Comment #8
ArlaRecreating patch against current head.
Comment #10
ArlaComment #13
BerdirThanks, committed.