You are here

function activity_entity_insert in Activity 8

Implements hook_ENTITY_insert().

File

./activity.module, line 22
Activity file events.

Code

function activity_entity_insert(EntityInterface $entity) {
  \Drupal::service('query_activity')
    ->logActivity($entity, $entity
    ->getEntityTypeId() . '_insert');
}