function content_translation_test_entity_translation_delete

Same name and namespace in other branches
  1. 11.x core/modules/content_translation/tests/modules/content_translation_test/content_translation_test.module \content_translation_test_entity_translation_delete()

Implements hook_entity_translation_delete().

File

core/modules/content_translation/tests/modules/content_translation_test/content_translation_test.module, line 75

Code

function content_translation_test_entity_translation_delete(EntityInterface $translation) {
    \Drupal::state()->set('content_translation_test.translation_deleted', TRUE);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.