Sync all fields value of an entity to an external API after the entity is created

by esafwan   Last Updated January 04, 2018 21:07 PM

I need to call an external API each time a new entity is created. And then the response of the API calls need to be stored in one of the fields in the entity that is created. This, not a node entity. Which is the right hook to use for this purpose?

Will the use of entity_save hook be the right thing to do?

Tags : entities hooks


Related Questions


Insert data into entity programmatically

Updated May 16, 2017 17:07 PM

How to create edit custom url for entity

Updated July 10, 2017 08:07 AM


How to get nid while inserting new node drupal 8

Updated January 04, 2018 13:07 PM