function better_statistics_entity_insert in Better Statistics 8
Implements hook_entity_insert().
File
- ./
better_statistics.module, line 21 - Contains better_statistics.module.
Code
function better_statistics_entity_insert(EntityInterface $entity) {
$current_user = \Drupal::service('current_user');
if ($entity
->getEntityTypeId() != 'sapi_data') {
\Drupal::service('better_statistics.entity_interaction_collector')
->actionTypeTrigger($entity, $current_user, 'Create');
}
}