function tmgmt_test_tracked_translation_inserts

Keeps track of created entity translations.

2 calls to tmgmt_test_tracked_translation_inserts()

File

tmgmt_test/tmgmt_test.module, line 80
Module file of the translation management test module.

Code

function tmgmt_test_tracked_translation_inserts(?EntityInterface $translation = NULL) {
  $translation_insertions =& drupal_static(__FUNCTION__, []);
  if ($translation) {
    $translation_insertions[$translation
      ->getEntityTypeId()][$translation
      ->id()][$translation
      ->language()
      ->getId()] = TRUE;
  }
  return $translation_insertions;
}