function entity_usage_entity_update in Entity Usage 8
Same name and namespace in other branches
- 8.2 entity_usage.module \entity_usage_entity_update()
- 8.3 entity_usage.module \entity_usage_entity_update()
Implements hook_entity_update().
File
- ./
entity_usage.module, line 42 - Contains entity_usage.module.
Code
function entity_usage_entity_update(EntityInterface $entity) {
// Only act on content entities.
if (!$entity instanceof ContentEntityInterface) {
return;
}
\Drupal::service('entity_usage.entity_update_manager')
->trackUpdateOnEdition($entity);
}