You are here

function better_statistics_entity_update in Better Statistics 8

Implements hook_entity_update().

File

./better_statistics.module, line 13
Contains better_statistics.module.

Code

function better_statistics_entity_update(EntityInterface $entity) {
  $current_user = \Drupal::service('current_user');
  \Drupal::service('better_statistics.entity_interaction_collector')
    ->actionTypeTrigger($entity, $current_user, 'Update');
}