function ContentTranslationTestHooks::entityTranslationDelete

Same name and namespace in other branches
  1. 11.x core/modules/content_translation/tests/modules/content_translation_test/src/Hook/ContentTranslationTestHooks.php \Drupal\content_translation_test\Hook\ContentTranslationTestHooks::entityTranslationDelete()

Implements hook_entity_translation_delete().

Attributes

#[Hook('entity_translation_delete')]

File

core/modules/content_translation/tests/modules/content_translation_test/src/Hook/ContentTranslationTestHooks.php, line 74

Class

ContentTranslationTestHooks
Hook implementations for content_translation_test.

Namespace

Drupal\content_translation_test\Hook

Code

public function entityTranslationDelete(EntityInterface $translation) : void {
  \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.