2 * Implements hook_ENTITY_TYPE_insert().
4 function {{ machine_name }}_ENTITY_TYPE_insert(Drupal\Core\Entity\EntityInterface $entity) {
5 // Insert the new entity into a fictional table of this type of entity.
6 db_insert('example_entity')
9 'created' => REQUEST_TIME,
10 'updated' => REQUEST_TIME,