To reproduce:
- Write a hook_ENTITY_TYPE_delete implementation and put a
\Drupal::logger(__FUNCTION__)->notice(__FUNCTION__)
inside of it - Write a hook_ENTITY_TYPE_translation_delete implementation and put a
\Drupal::logger(__FUNCTION__)->notice(__FUNCTION__)
inside of it - Create a node in the site default language
- Translate the node into another language
- Delete the node in the default language
Expected result:
- You see the notice that the node will be deleted in all the languages
- You get a log message that shows hook_ENTITY_TYPE_delete was called
- You get a log message that shows hook_ENTITY_TYPE_translation_delete was called
Actual result:
- You see the notice that the node will be deleted in all the languages
- You get a log message that shows hook_ENTITY_TYPE_delete was called
- You DO NOT get a log message that shows hook_ENTITY_TYPE_translation_delete was called
Note: If you directly delete a given translation you DO get a log message that shows that hook_ENTITY_TYPE_translation_delete was called.