diff --git a/core/modules/node/templates/node.html.twig b/core/modules/node/templates/node.html.twig index e7e353d..2532fcc 100644 --- a/core/modules/node/templates/node.html.twig +++ b/core/modules/node/templates/node.html.twig @@ -5,9 +5,17 @@ * * 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 + * @link https://api.drupal.org/api/drupal/core!modules!node!src!Entity!Node.php/class/Node/8 API documentation @endlink + * 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 diff --git a/core/themes/bartik/templates/node.html.twig b/core/themes/bartik/templates/node.html.twig index 5d509aa..c071628 100644 --- a/core/themes/bartik/templates/node.html.twig +++ b/core/themes/bartik/templates/node.html.twig @@ -5,9 +5,17 @@ * * 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 + * @link https://api.drupal.org/api/drupal/core!modules!node!src!Entity!Node.php/class/Node/8 API documentation @endlink + * 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 diff --git a/core/themes/classy/templates/content/node.html.twig b/core/themes/classy/templates/content/node.html.twig index 5af7c25..f5a2818 100644 --- a/core/themes/classy/templates/content/node.html.twig +++ b/core/themes/classy/templates/content/node.html.twig @@ -5,9 +5,17 @@ * * 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 + * @link https://api.drupal.org/api/drupal/core!modules!node!src!Entity!Node.php/class/Node/8 API documentation @endlink + * 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 diff --git a/core/themes/stable/templates/content/node.html.twig b/core/themes/stable/templates/content/node.html.twig index 68a92ea..788ff0d 100644 --- a/core/themes/stable/templates/content/node.html.twig +++ b/core/themes/stable/templates/content/node.html.twig @@ -5,9 +5,17 @@ * * 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 + * @link https://api.drupal.org/api/drupal/core!modules!node!src!Entity!Node.php/class/Node/8 API documentation @endlink + * 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