Alter status on /node/xxx/translations

Created on 13 October 2023, 9 months ago
Updated 17 October 2023, 9 months ago

Problem/Motivation

It would be great to be able to edit the status of each node on /node/xxx/translations. Currently status is built like this (inline template):

$status = [
            'data' => [
              '#type' => 'inline_template',
              '#template' => '<span class="status">{% if status %}{{ "Published"|t }}{% else %}{{ "Not published"|t }}{% endif %}</span>{% if outdated %} <span class="marker">{{ "outdated"|t }}</span>{% endif %}',
              '#context' => [
                'status' => $metadata->isPublished(),
                'outdated' => $metadata->isOutdated(),
              ],
            ],
          ];

Proposed resolution

Add a custom hook so the values can be altered in a custom module.

✨ Feature request
Status

Closed: duplicate

Version

8.9 ⚰️

Component
Content translationΒ  β†’

Last updated 3 days ago

No maintainer
Created by

πŸ‡ͺπŸ‡ΈSpain guardiola86

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024