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,
'#description' =>
t('If you made a significant change, which means the other translations should be updated, you can flag all translations of this content as outdated. This will not change any other property of them, like whether they are published or not.'
),