function audit_log_entity_delete in Audit Log 8
Same name and namespace in other branches
- 8.2 audit_log.module \audit_log_entity_delete()
- 7 audit_log.module \audit_log_entity_delete()
Implements hook_entity_delete().
File
- ./
audit_log.module, line 27 - Contains hook implementations for the audit_log module.
Code
function audit_log_entity_delete(EntityInterface $entity) {
\Drupal::service('audit_log.logger')
->log('delete', $entity);
}