t('An unpublished translation will not be visible without translation permissions.'
) :
t('Only this translation is published. You must publish at least one more translation to unpublish this one.'
);
$form['content_translation'
]['status'
] =
[ '#type' => 'checkbox',
'#title' =>
t('This translation is published'
),
'#default_value' =>
$status,
'#description' =>
$description,
'#disabled' => !
$enabled,
];
$translate = !
$new_translation &&
$metadata->
isOutdated();
$outdated_access = !ContentTranslationManager::
isPendingRevisionSupportEnabled($entity->
getEntityTypeId(),
$entity->
bundle());
if (!
$outdated_access) { $form['content_translation'
]['outdated'
] =
[ '#markup' =>
$this->
t('Translations cannot be flagged as outdated when content is moderated.'
),
];
} elseif (!
$translate) { $form['content_translation'
]['retranslate'
] =
[ '#type' => 'checkbox',
'#title' =>
t('Flag other translations as outdated'
),
'#default_value' => FALSE,