You are here

function activity_entity_update in Activity 8

Implements hook_ENTITY_update().

File

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

Code

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