I need to manipulate a content type (people) before being saved from ADMIN.
I need to save the name + surname in the title
I know the presave functions (hook_node_presave
or hook_entity_presave
) should be used.
My problem is where should these functions be written?
I am writing them in themes / custom / MYPROJECT / MYPROJECT.theme but they do not run
Where are the preset functions written for ADMIN to use instead of the normal ones?