summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/entity_test/entity_test.module
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/entity_test/entity_test.module')
-rw-r--r--core/modules/system/tests/modules/entity_test/entity_test.module29
1 files changed, 29 insertions, 0 deletions
diff --git a/core/modules/system/tests/modules/entity_test/entity_test.module b/core/modules/system/tests/modules/entity_test/entity_test.module
index 08fa564..6a6c6e2 100644
--- a/core/modules/system/tests/modules/entity_test/entity_test.module
+++ b/core/modules/system/tests/modules/entity_test/entity_test.module
@@ -52,6 +52,7 @@ function entity_test_entity_types($filter = NULL) {
}
if ($filter != ENTITY_TEST_TYPES_REVISABLE) {
$types[] = 'entity_test_mul';
+ $types[] = 'entity_test_mul_langcode_key';
}
if ($filter != ENTITY_TEST_TYPES_MULTILINGUAL) {
$types[] = 'entity_test_rev';
@@ -429,6 +430,34 @@ function entity_test_entity_test_mul_translation_delete(EntityInterface $transla
}
/**
+ * Implements hook_ENTITY_TYPE_translation_insert().
+ */
+function entity_test_entity_test_mulrev_translation_insert(EntityInterface $translation) {
+ _entity_test_record_hooks('entity_test_mulrev_translation_insert', $translation->language()->getId());
+}
+
+/**
+ * Implements hook_ENTITY_TYPE_translation_delete().
+ */
+function entity_test_entity_test_mulrev_translation_delete(EntityInterface $translation) {
+ _entity_test_record_hooks('entity_test_mulrev_translation_delete', $translation->language()->getId());
+}
+
+/**
+ * Implements hook_ENTITY_TYPE_translation_insert().
+ */
+function entity_test_entity_test_mul_langcode_key_translation_insert(EntityInterface $translation) {
+ _entity_test_record_hooks('entity_test_mul_langcode_key_translation_insert', $translation->language()->getId());
+}
+
+/**
+ * Implements hook_ENTITY_TYPE_translation_delete().
+ */
+function entity_test_entity_test_mul_langcode_key_translation_delete(EntityInterface $translation) {
+ _entity_test_record_hooks('entity_test_mul_langcode_key_translation_delete', $translation->language()->getId());
+}
+
+/**
* Field default value callback.
*
* @param \Drupal\Core\Entity\FieldableEntityInterface $entity