Timeline for How do I update a field value in hook_entity_insert()?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 21, 2017 at 5:40 | comment | added | Ajay Reddy | I really don't think so there $node->save() is necessary. As hook, itself reveals that "presave" and it will save the respective entity as we pass all values. | |
Nov 20, 2017 at 18:11 | comment | added | OPTASY | In hook_node_presave() after setting the value on a field also add $node->save(). | |
Nov 20, 2017 at 6:45 | comment | added | Ram | Hi Ajay , I have edited the questtion, After inserting the node only i will get the text "test" dynamically and it wont work in hook_entity_presave(). | |
Nov 20, 2017 at 6:38 | history | answered | Ajay Reddy | CC BY-SA 3.0 |