You are here

function audit_log_entity_insert in Audit Log 8

Same name and namespace in other branches
  1. 8.2 audit_log.module \audit_log_entity_insert()
  2. 7 audit_log.module \audit_log_entity_insert()

Implements hook_entity_insert().

File

./audit_log.module, line 20
Contains hook implementations for the audit_log module.

Code

function audit_log_entity_insert(EntityInterface $entity) {
  \Drupal::service('audit_log.logger')
    ->log('insert', $entity);
}