@@ -138,10 +138,10 @@ function node_help($route_name, RouteMatchInterface $route_match) {
return'<p>'.t('Content items can be displayed using different view modes: Teaser, Full content, Print, RSS, etc. <em>Teaser</em> is a short format that is typically used in lists of multiple content items. <em>Full content</em> is typically used when the content is displayed on its own page.').'</p>'.
'<p>'.t('Here, you can define which fields are shown and hidden when %type content is displayed in each view mode, and define how the fields are displayed in each view mode.',array('%type'=>$type->label())).'</p>';
case'node.revision_overview':
case'entity.node.version_history':
return'<p>'.t('Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.').'</p>';
@@ -173,7 +173,7 @@ public function revisionOverview(NodeInterface $node) {
'#theme'=>'username',
'#account'=>$revision_author,
);
$row[]=array('data'=>$this->t('!date by !username',array('!date'=>$this->l($this->dateFormatter->format($revision->revision_timestamp->value,'short'),'node.view',array('node'=>$node->id())),'!username'=>drupal_render($username)))
$row[]=array('data'=>$this->t('!date by !username',array('!date'=>$this->l($this->dateFormatter->format($revision->revision_timestamp->value,'short'),'entity.node.canonical',array('node'=>$node->id())),'!username'=>drupal_render($username)))
drupal_set_message(t('Revision from %revision-date of @type %title has been deleted.',array('%revision-date'=>format_date($this->revision->getRevisionCreationTime()),'@type'=>$node_type,'%title'=>$this->revision->label())));
$form_state->setRedirect(
'node.view',
'entity.node.canonical',
array('node'=>$this->revision->id())
);
if($this->connection->query('SELECT COUNT(DISTINCT vid) FROM {node_field_revision} WHERE nid = :nid',array(':nid'=>$this->revision->id()))->fetchField()>1){
drupal_set_message(t('@type %title has been reverted back to the revision from %revision-date.',array('@type'=>node_get_type_label($this->revision),'%title'=>$this->revision->label(),'%revision-date'=>format_date($original_revision_timestamp))));