Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 298376

hook_ENTITY_TYPE_translation_delete not called

$
0
0

To reproduce:

  1. Write a hook_ENTITY_TYPE_delete implementation and put a \Drupal::logger(__FUNCTION__)->notice(__FUNCTION__) inside of it
  2. Write a hook_ENTITY_TYPE_translation_delete implementation and put a \Drupal::logger(__FUNCTION__)->notice(__FUNCTION__) inside of it
  3. Create a node in the site default language
  4. Translate the node into another language
  5. Delete the node in the default language

Expected result:

  1. You see the notice that the node will be deleted in all the languages
  2. You get a log message that shows hook_ENTITY_TYPE_delete was called
  3. You get a log message that shows hook_ENTITY_TYPE_translation_delete was called

Actual result:

  1. You see the notice that the node will be deleted in all the languages
  2. You get a log message that shows hook_ENTITY_TYPE_delete was called
  3. 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.


Viewing all articles
Browse latest Browse all 298376

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>