You are here

function entity_usage_entity_insert in Entity Usage 8.2

Same name and namespace in other branches
  1. 8 entity_usage.module \entity_usage_entity_insert()
  2. 8.3 entity_usage.module \entity_usage_entity_insert()

Implements hook_entity_insert().

File

./entity_usage.module, line 33
Contains entity_usage.module.

Code

function entity_usage_entity_insert(EntityInterface $entity) {
  \Drupal::service('entity_usage.entity_update_manager')
    ->trackUpdateOnCreation($entity);
}