diff --git a/core/modules/node/templates/node.html.twig b/core/modules/node/templates/node.html.twig index e7e353d..11eeb9b 100644 --- a/core/modules/node/templates/node.html.twig +++ b/core/modules/node/templates/node.html.twig @@ -5,12 +5,19 @@ * * Available variables: * - node: The node entity with limited access to object properties and methods. - Only "getter" methods (method names starting with "get", "has", or "is") - and a few common methods such as "id" and "label" are available. Calling - other methods (such as node.delete) will result in an exception. + * Only "getter" methods (method names starting with "get", "has", or "is") + * and a few common methods such as "id", "label", and "bundle" are available. + * For example, + * node.getCreatedTime() will return the node creation timestamp + * node.hasField('field_example') returns TRUE if the node includes + * field_example + * node.isPublished() will return whether the node is published or not + * Calling other methods (such as node.delete) will result in an exception. + * See the API documentation for a full list of public properties and methods + * for the node object. * - 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: All node items. Use {{ content }} to print them all, or print a + * subset such as {{ content.field_example }}. Use * {{ 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" @@ -36,12 +43,12 @@ * teaser listings. * - node--unpublished: Appears on unpublished nodes visible only to site * admins. - * - title_attributes: Same as attributes, except applied to the main title + * - title_attributes: Same as attributes, except applied to the main title tag + * that appears in the template. + * - content_attributes: Same as attributes, except applied to the main content * tag that appears in the template. - * - content_attributes: Same as attributes, except applied to the main - * content tag that appears in the template. - * - author_attributes: Same as attributes, except applied to the author of - * the node tag that appears in the template. + * - author_attributes: Same as attributes, except applied to the author of the + * node tag that appears in the template. * - title_prefix: Additional output populated by modules, intended to be * displayed in front of the main title tag that appears in the template. * - title_suffix: Additional output populated by modules, intended to be @@ -53,8 +60,8 @@ * node cannot hold the main body content. * - logged_in: Flag for authenticated user status. Will be true when the * current user is a logged-in member. - * - is_admin: Flag for admin user status. Will be true when the current user - * is an administrator. + * - is_admin: Flag for admin user status. Will be true when the current user is + * an administrator. * * @see template_preprocess_node() * diff --git a/core/themes/bartik/templates/node.html.twig b/core/themes/bartik/templates/node.html.twig index 5d509aa..3430794 100644 --- a/core/themes/bartik/templates/node.html.twig +++ b/core/themes/bartik/templates/node.html.twig @@ -5,12 +5,19 @@ * * Available variables: * - node: The node entity with limited access to object properties and methods. - Only "getter" methods (method names starting with "get", "has", or "is") - and a few common methods such as "id" and "label" are available. Calling - other methods (such as node.delete) will result in an exception. + * Only "getter" methods (method names starting with "get", "has", or "is") + * and a few common methods such as "id", "label", and "bundle" are available. + * For example, + * node.getCreatedTime() will return the node creation timestamp + * node.hasField('field_example') returns TRUE if the node includes + * field_example + * node.isPublished() will return whether the node is published or not + * Calling other methods (such as node.delete) will result in an exception. + * See the API documentation for a full list of public properties and methods + * for the node object. * - 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: All node items. Use {{ content }} to print them all, or print a + * subset such as {{ content.field_example }}. Use * {{ 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" @@ -36,12 +43,12 @@ * teaser listings. * - node--unpublished: Appears on unpublished nodes visible only to site * admins. - * - title_attributes: Same as attributes, except applied to the main title + * - title_attributes: Same as attributes, except applied to the main title tag + * that appears in the template. + * - content_attributes: Same as attributes, except applied to the main content * tag that appears in the template. - * - content_attributes: Same as attributes, except applied to the main - * content tag that appears in the template. - * - author_attributes: Same as attributes, except applied to the author of - * the node tag that appears in the template. + * - author_attributes: Same as attributes, except applied to the author of the + * node tag that appears in the template. * - title_prefix: Additional output populated by modules, intended to be * displayed in front of the main title tag that appears in the template. * - title_suffix: Additional output populated by modules, intended to be @@ -53,8 +60,8 @@ * node cannot hold the main body content. * - logged_in: Flag for authenticated user status. Will be true when the * current user is a logged-in member. - * - is_admin: Flag for admin user status. Will be true when the current user - * is an administrator. + * - is_admin: Flag for admin user status. Will be true when the current user is + * an administrator. * * @see template_preprocess_node() */ diff --git a/core/themes/classy/templates/content/node.html.twig b/core/themes/classy/templates/content/node.html.twig index 5af7c25..471acce 100644 --- a/core/themes/classy/templates/content/node.html.twig +++ b/core/themes/classy/templates/content/node.html.twig @@ -5,12 +5,19 @@ * * Available variables: * - node: The node entity with limited access to object properties and methods. - Only "getter" methods (method names starting with "get", "has", or "is") - and a few common methods such as "id" and "label" are available. Calling - other methods (such as node.delete) will result in an exception. + * Only "getter" methods (method names starting with "get", "has", or "is") + * and a few common methods such as "id", "label", and "bundle" are available. + * For example, + * node.getCreatedTime() will return the node creation timestamp + * node.hasField('field_example') returns TRUE if the node includes + * field_example + * node.isPublished() will return whether the node is published or not + * Calling other methods (such as node.delete) will result in an exception. + * See the API documentation for a full list of public properties and methods + * for the node object. * - 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: All node items. Use {{ content }} to print them all, or print a + * subset such as {{ content.field_example }}. Use * {{ 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" @@ -36,12 +43,12 @@ * teaser listings. * - node--unpublished: Appears on unpublished nodes visible only to site * admins. - * - title_attributes: Same as attributes, except applied to the main title + * - title_attributes: Same as attributes, except applied to the main title tag + * that appears in the template. + * - content_attributes: Same as attributes, except applied to the main content * tag that appears in the template. - * - content_attributes: Same as attributes, except applied to the main - * content tag that appears in the template. - * - author_attributes: Same as attributes, except applied to the author of - * the node tag that appears in the template. + * - author_attributes: Same as attributes, except applied to the author of the + * node tag that appears in the template. * - title_prefix: Additional output populated by modules, intended to be * displayed in front of the main title tag that appears in the template. * - title_suffix: Additional output populated by modules, intended to be @@ -53,8 +60,8 @@ * node cannot hold the main body content. * - logged_in: Flag for authenticated user status. Will be true when the * current user is a logged-in member. - * - is_admin: Flag for admin user status. Will be true when the current user - * is an administrator. + * - is_admin: Flag for admin user status. Will be true when the current user is + * an administrator. * * @see template_preprocess_node() * diff --git a/core/themes/stable/templates/content/node.html.twig b/core/themes/stable/templates/content/node.html.twig index 68a92ea..8967315 100644 --- a/core/themes/stable/templates/content/node.html.twig +++ b/core/themes/stable/templates/content/node.html.twig @@ -5,12 +5,19 @@ * * Available variables: * - node: The node entity with limited access to object properties and methods. - Only "getter" methods (method names starting with "get", "has", or "is") - and a few common methods such as "id" and "label" are available. Calling - other methods (such as node.delete) will result in an exception. + * Only "getter" methods (method names starting with "get", "has", or "is") + * and a few common methods such as "id", "label", and "bundle" are available. + * For example, + * node.getCreatedTime() will return the node creation timestamp + * node.hasField('field_example') returns TRUE if the node includes + * field_example + * node.isPublished() will return whether the node is published or not + * Calling other methods (such as node.delete) will result in an exception. + * See the API documentation for a full list of public properties and methods + * for the node object. * - 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: All node items. Use {{ content }} to print them all, or print a + * subset such as {{ content.field_example }}. Use * {{ 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" @@ -36,12 +43,12 @@ * teaser listings. * - node--unpublished: Appears on unpublished nodes visible only to site * admins. - * - title_attributes: Same as attributes, except applied to the main title + * - title_attributes: Same as attributes, except applied to the main title tag + * that appears in the template. + * - content_attributes: Same as attributes, except applied to the main content * tag that appears in the template. - * - content_attributes: Same as attributes, except applied to the main - * content tag that appears in the template. - * - author_attributes: Same as attributes, except applied to the author of - * the node tag that appears in the template. + * - author_attributes: Same as attributes, except applied to the author of the + * node tag that appears in the template. * - title_prefix: Additional output populated by modules, intended to be * displayed in front of the main title tag that appears in the template. * - title_suffix: Additional output populated by modules, intended to be @@ -53,8 +60,8 @@ * node cannot hold the main body content. * - logged_in: Flag for authenticated user status. Will be true when the * current user is a logged-in member. - * - is_admin: Flag for admin user status. Will be true when the current user - * is an administrator. + * - is_admin: Flag for admin user status. Will be true when the current user is + * an administrator. * * @see template_preprocess_node() *