audit_log.module in Audit Log 8
Same filename and directory in other branches
Contains hook implementations for the audit_log module.
File
audit_log.moduleView source
<?php
/**
* @file
* Contains hook implementations for the audit_log module.
*/
use Drupal\Core\Entity\EntityInterface;
/**
* Implements hook_entity_update().
*/
function audit_log_entity_update(EntityInterface $entity) {
\Drupal::service('audit_log.logger')
->log('update', $entity);
}
/**
* Implements hook_entity_insert().
*/
function audit_log_entity_insert(EntityInterface $entity) {
\Drupal::service('audit_log.logger')
->log('insert', $entity);
}
/**
* Implements hook_entity_delete().
*/
function audit_log_entity_delete(EntityInterface $entity) {
\Drupal::service('audit_log.logger')
->log('delete', $entity);
}
Functions
Name | Description |
---|---|
audit_log_entity_delete | Implements hook_entity_delete(). |
audit_log_entity_insert | Implements hook_entity_insert(). |
audit_log_entity_update | Implements hook_entity_update(). |