I have a custom content type, when I create a new content of this type via the admin ui I want be redirect to the edit page of the new node (not to the view page by default)
So, from an alter form hook, it's not possible because I don't know yet the node ID of the future node. From
hook_entity_presave() it's the same: I don't know yet the node ID of the future node. From
hook_entity_insert() hook, I have the node ID, but I don't know how can I check the entity is just created.
hook_entity_insert(), is it possible to know if the entity is just created?