$date =
$this->dateFormatter->
format($revision->revision_timestamp->value, 'short'
);
// We treat also the latest translation-affecting revision as current
// revision, if it was the default revision, as its values for the
// current language will be the same of the current default revision in
// this case.
$is_current_revision =
$vid ==
$default_revision || (!
$current_revision_displayed &&
$revision->
wasDefaultRevision());
if (!
$is_current_revision) { $link = Link::
fromTextAndUrl($date,
new Url('entity.node.revision',
['node' =>
$node->
id(), 'node_revision' =>
$vid]))->
toString();
} else { $link =
$node->
toLink($date)->
toString();
$current_revision_displayed = TRUE;
} $row =
[];
$column =
[ 'data' =>
[ '#type' => 'inline_template',
'#template' => '{% trans %}{{ date }} by {{ username }}{% endtrans %}{% if message %}<p class="revision-log">{{ message }}</p>{% endif %}',
'#context' =>
[ 'date' =>
$link,
'username' =>
$this->renderer->
renderPlain($username),