- 🇨🇭Switzerland berdir Switzerland
📌 Define 'original' as property on the entity object Needs work is RTBC now.
The original entity is currently passed as piggy-backed property $entity->original
. It's useful to have it, but it's not very visible there.
What about moving from
hook_entity_update($entity, $type)
hook_{entity_type}_update($node)
to
hook_entity_update($entity, $entity_original)
hook_{entity_type}_update($entity, $entity_original)
Analogously for the presave hooks, e.g.
hook_entity_presave($entity, $entity_original = NULL)
If we do so we could scratch $entity->original
. However, currently the existence of $entity->original
allows for more efficient mass-updates as original can be multiple-loaded. So what about providing entity_save_multiple($entities)
which already handles that efficiently?
Closed: duplicate
11.0 🔥
entity system
Changes an existing API or subsystem. Not backportable to earlier major versions, unless absolutely required to fix a critical bug.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
📌 Define 'original' as property on the entity object Needs work is RTBC now.