function ContentTranslationTestHooks::entityTranslationDelete

Implements hook_entity_translation_delete().

File

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

Class

ContentTranslationTestHooks
Hook implementations for content_translation_test.

Namespace

Drupal\content_translation_test\Hook

Code

public function entityTranslationDelete(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.