diff --git a/core/modules/node/templates/node.html.twig b/core/modules/node/templates/node.html.twig
index a7e511d..bfce74f 100644
--- a/core/modules/node/templates/node.html.twig
+++ b/core/modules/node/templates/node.html.twig
@@ -11,10 +11,6 @@
* - createdtime: Formatted creation date. Preprocess functions can
* reformat it by calling format_date() with the desired parameters on
* $variables['node']->getCreatedTime().
- * - isPromoted(): Whether the node is promoted to the front page.
- * - isSticky(): Whether the node is 'sticky'. Sticky nodes are ordered above
- * other non-sticky nodes in teaser listings
- * - isPublished(): Whether the node is published.
* - label: The title of the node.
* - content: All node items. Use {{ content }} to print them all,
* or print a subset such as {{ content.field_example }}. Use
@@ -33,8 +29,8 @@
* The attributes.class element may contain one or more of the following
* classes:
* - node: The current template type (also known as a "theming hook").
- * - node--[type]: The current node type. For example, if the node is a
- * "Article" it would result in "node--article". Note that the machine
+ * - node--type-[type]: The current node type. For example, if the node is a
+ * "Article" it would result in "node--type-article". Note that the machine
* name will often be in a short form of the human readable label.
* - node--view-mode-[view_mode]: The View Mode of the node; for example, a
* teaser would result in: "node--view-mode-teaser", and
@@ -84,7 +80,6 @@
node.isSticky() ? 'node--sticky',
not node.isPublished() ? 'node--unpublished',
view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
- preview ? 'node--preview',
]
%}
diff --git a/core/themes/bartik/templates/node.html.twig b/core/themes/bartik/templates/node.html.twig
index c6d0aee..57297c6 100644
--- a/core/themes/bartik/templates/node.html.twig
+++ b/core/themes/bartik/templates/node.html.twig
@@ -11,15 +11,11 @@
* - createdtime: Formatted creation date. Preprocess functions can
* reformat it by calling format_date() with the desired parameters on
* $variables['node']->getCreatedTime().
- * - isPromoted(): Whether the node is promoted to the front page.
- * - isSticky(): Whether the node is 'sticky'. Sticky nodes are ordered above
- * other non-sticky nodes in teaser listings
- * - isPublished(): Whether the node is published.
* - label: The title of the node.
* - content: All node items. Use {{ content }} to print them all,
* or print a subset such as {{ content.field_example }}. Use
- * {{ content|without('field_example') }} to exclude the printing of a
- * given child element.
+ * {{ content|without('field_example') %} to temporarily suppress the printing
+ * of a given child element.
* - author_picture: The node author user entity, rendered using the "compact"
* view mode.
* - metadata: Metadata for this node.
@@ -33,13 +29,12 @@
* The attributes.class element may contain one or more of the following
* classes:
* - node: The current template type (also known as a "theming hook").
- * - node--[type]: The current node type. For example, if the node is a
- * "Article" it would result in "node--article". Note that the machine
+ * - node--type-[type]: The current node type. For example, if the node is a
+ * "Article" it would result in "node--type-article". Note that the machine
* name will often be in a short form of the human readable label.
* - node--view-mode-[view_mode]: The View Mode of the node; for example, a
- * teaser would result in: "node--view-mode-teaser",
- * and full: "node--view-mode-full".
- * - is-preview: Whether a node is in preview mode.
+ * teaser would result in: "node--view-mode-teaser", and
+ * full: "node--view-mode-full".
* The following are controlled through the node publishing options.
* - node--promoted: Appears on nodes promoted to the front page.
* - node--sticky: Appears on nodes ordered above other non-sticky nodes in
@@ -79,7 +74,6 @@
node.isSticky() ? 'node--sticky',
not node.isPublished() ? 'node--unpublished',
view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
- preview ? 'node--preview',
'clearfix',
]
%}