You are here

function entity_usage_entity_translation_delete in Entity Usage 8

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

Implements hook_entity_translation_delete().

File

./entity_usage.module, line 64
Contains entity_usage.module.

Code

function entity_usage_entity_translation_delete(EntityInterface $translation) {

  // Only act on content entities.
  if (!$translation instanceof ContentEntityInterface) {
    return;
  }
  \Drupal::service('entity_usage.entity_update_manager')
    ->trackUpdateOnDeletion($translation);
}