You are here

field--photos-image--title.html.twig in Album Photos 8.5

Same filename and directory in other branches
  1. 6.0.x templates/field--photos-image--title.html.twig

Default theme implementation for the photos_image title field.

This is an override of field.html.twig for the photos_image title 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

field.html.twig

File

templates/field--photos-image--title.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the photos_image title field.
  5. *
  6. * This is an override of field.html.twig for the photos_image title field. See that
  7. * template for documentation about its details and overrides.
  8. *
  9. * Available variables:
  10. * - attributes: HTML attributes for the containing span element.
  11. * - items: List of all the field items. Each item contains:
  12. * - attributes: List of HTML attributes for each item.
  13. * - content: The field item content.
  14. * - entity_type: The entity type to which the field belongs.
  15. * - field_name: The name of the field.
  16. * - field_type: The type of the field.
  17. * - label_display: The display settings for the label.
  18. *
  19. * @see field.html.twig
  20. *
  21. * @ingroup themeable
  22. */
  23. #}
  24. <span{{ attributes }}>
  25. {%- for item in items -%}
  26. {{ item.content }}
  27. {%- endfor -%}
  28. </span>