You are here

function activity_entity_delete in Activity 8

Implements hook_ENTITY_delete().

File

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

Code

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