logo

Paleta - Deixe colorido🎨

Palette — Construtor visual de páginas. Não precisa ser designer.

Demonstração ao vivo Baixar Palette

Scroll

É possível obter o ID do nó que será criado?

22/02/2025, by Anônimo (não verificado)

Trying to pass some information to third party API, every time a new node is created.

So far I have managed to identify the node insert/create when a node is created in hook_node_presave(). Done it by using empty($node->id()).

Now I want to anticipate what the node ID will be once the node is saved. Is it possible to get the node ID before the node is created?