> For the complete documentation index, see [llms.txt](https://cathy-thy.gitbook.io/drupal-9/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cathy-thy.gitbook.io/drupal-9/custom-modules/hook-introduction/hook_entity_type_update.md). Agents can also search and read this documentation through its [MCP server](https://cathy-thy.gitbook.io/drupal-9/~gitbook/mcp).

# hook\_ENTITY\_TYPE\_update

hook\_ENTITY\_TYPE\_update is one of the hooks available in Drupal. It is powerful as it covers different "ENTITY\_TYPE".

In Drupal, multiple things are classified as entity type, such as user, content (node), taxonomy...

Here, I use node as an example. By using "hook\_ENTITY\_TYPE\_update", I wish to print a custom message.

### Useful Reference

{% embed url="<https://drupalize.me/topic/entities>" %}
