You are here

function audit_log_entity_update in Audit Log 8

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

Implements hook_entity_update().

File

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

Code

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