Allow changing the entity just before it's saved via POST

For example, setting the author of the node entity.