/core/modules/node/src/Controller/NodeController.php:201

'#template' => '{% trans %}{{ date }} by {{ username }}{% endtrans %}{% if message %}<p class="revision-log">{{ message }}</p>{% endif %}',

Variables date and username aren't printed. But this line is working

'#template' => '{{ date }} {% trans %}by{% endtrans %} {{ username }}{% if message %}<p class="revision-log">{{ message }}</p>{% endif %}'

To reproduce please visit /node/{node}/revisions

Comments

andreyks created an issue. See original summary.

andreyks’s picture

Issue summary: View changes
andreyks’s picture

Issue summary: View changes
andreyks’s picture

Status: Active » Closed (cannot reproduce)

Sorry, custom code breaks twig template..