Keeps track of created entity translations.
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;
}