X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcontent_translation%2Fsrc%2FController%2FContentTranslationController.php;fp=web%2Fcore%2Fmodules%2Fcontent_translation%2Fsrc%2FController%2FContentTranslationController.php;h=190778d42c4bfdd819f771afbbbcdda845e39e7a;hp=c18eab395a098cb02c81c127ef9ed143c5922975;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5
diff --git a/web/core/modules/content_translation/src/Controller/ContentTranslationController.php b/web/core/modules/content_translation/src/Controller/ContentTranslationController.php
index c18eab395..190778d42 100644
--- a/web/core/modules/content_translation/src/Controller/ContentTranslationController.php
+++ b/web/core/modules/content_translation/src/Controller/ContentTranslationController.php
@@ -196,14 +196,16 @@ class ContentTranslationController extends ControllerBase {
if (isset($links['edit'])) {
$links['edit']['title'] = $this->t('Edit');
}
- $status = ['data' => [
- '#type' => 'inline_template',
- '#template' => '{% if status %}{{ "Published"|t }}{% else %}{{ "Not published"|t }}{% endif %}{% if outdated %} {{ "outdated"|t }}{% endif %}',
- '#context' => [
- 'status' => $metadata->isPublished(),
- 'outdated' => $metadata->isOutdated(),
+ $status = [
+ 'data' => [
+ '#type' => 'inline_template',
+ '#template' => '{% if status %}{{ "Published"|t }}{% else %}{{ "Not published"|t }}{% endif %}{% if outdated %} {{ "outdated"|t }}{% endif %}',
+ '#context' => [
+ 'status' => $metadata->isPublished(),
+ 'outdated' => $metadata->isOutdated(),
+ ],
],
- ]];
+ ];
if ($is_original) {
$language_name = $this->t('@language_name (Original language)', ['@language_name' => $language_name]);