Commit 0f42cd05 authored by catch's avatar catch
Browse files

Issue #2917031 by mallezie: NodeTranslationHandler references old publish and unpublish actions

parent 90c4ab5c
......@@ -39,10 +39,8 @@ public function entityFormAlter(array &$form, FormStateInterface $form_state, En
}
}
if (isset($status_translatable)) {
foreach (['publish', 'unpublish', 'submit'] as $button) {
if (isset($form['actions'][$button])) {
$form['actions'][$button]['#value'] .= ' ' . ($status_translatable ? t('(this translation)') : t('(all translations)'));
}
if (isset($form['actions']['submit'])) {
$form['actions']['submit']['#value'] .= ' ' . ($status_translatable ? t('(this translation)') : t('(all translations)'));
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment