Entity builder callback.
function tmgmt_content_entity_builder($entity_type, FieldConfigInterface $entity, &$form, FormStateInterface $form_state) {
$exclude_from_translation = $form_state
->getValue('tmgmt_content_excluded');
$entity
->setThirdPartySetting('tmgmt_content', 'excluded', $exclude_from_translation);
}