field--node--uid.html.twig
Same filename in this branch
- 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/field/field--node--uid.html.twig
- 8.9.x core/themes/seven/templates/classy/field/field--node--uid.html.twig
- 8.9.x core/themes/claro/templates/classy/field/field--node--uid.html.twig
- 8.9.x core/themes/bartik/templates/classy/field/field--node--uid.html.twig
- 8.9.x core/themes/stable/templates/field/field--node--uid.html.twig
- 8.9.x core/themes/classy/templates/field/field--node--uid.html.twig
Same filename in other branches
- 9 core/profiles/demo_umami/themes/umami/templates/classy/field/field--node--uid.html.twig
- 9 core/themes/stable9/templates/field/field--node--uid.html.twig
- 9 core/themes/seven/templates/classy/field/field--node--uid.html.twig
- 9 core/themes/claro/templates/classy/field/field--node--uid.html.twig
- 9 core/themes/bartik/templates/classy/field/field--node--uid.html.twig
- 9 core/themes/stable/templates/field/field--node--uid.html.twig
- 9 core/themes/starterkit_theme/templates/field/field--node--uid.html.twig
- 9 core/themes/classy/templates/field/field--node--uid.html.twig
- 9 core/modules/node/templates/field--node--uid.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/field/field--node--uid.html.twig
- 10 core/themes/stable9/templates/field/field--node--uid.html.twig
- 10 core/themes/claro/templates/classy/field/field--node--uid.html.twig
- 10 core/themes/starterkit_theme/templates/field/field--node--uid.html.twig
- 10 core/modules/node/templates/field--node--uid.html.twig
- 11.x core/profiles/demo_umami/themes/umami/templates/classy/field/field--node--uid.html.twig
- 11.x core/themes/stable9/templates/field/field--node--uid.html.twig
- 11.x core/themes/claro/templates/classy/field/field--node--uid.html.twig
- 11.x core/themes/starterkit_theme/templates/field/field--node--uid.html.twig
- 11.x core/modules/node/templates/field--node--uid.html.twig
Default theme implementation for the node user field.
This is an override of field.html.twig for the node user field. See that template for documentation about its details and overrides.
Available variables:
- attributes: HTML attributes for the containing span element.
- items: List of all the field items. Each item contains:
- attributes: List of HTML attributes for each item.
- content: The field item content.
- entity_type: The entity type to which the field belongs.
- field_name: The name of the field.
- field_type: The type of the field.
- label_display: The display settings for the label.
See also
File
-
core/
modules/ node/ templates/ field--node--uid.html.twig
View source
- {#
- /**
- * @file
- * Default theme implementation for the node user field.
- *
- * This is an override of field.html.twig for the node user field. See that
- * template for documentation about its details and overrides.
- *
- * Available variables:
- * - attributes: HTML attributes for the containing span element.
- * - items: List of all the field items. Each item contains:
- * - attributes: List of HTML attributes for each item.
- * - content: The field item content.
- * - entity_type: The entity type to which the field belongs.
- * - field_name: The name of the field.
- * - field_type: The type of the field.
- * - label_display: The display settings for the label.
- *
- * @see field.html.twig
- *
- * @ingroup themeable
- */
- #}
- <span{{ attributes }}>
- {%- for item in items -%}
- {{ item.content }}
- {%- endfor -%}
- </span>
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.