Allow to attach to any entity providing the right variables on hook entity_after_save().