You are here

crm-core-individual.html.twig in CRM Core 8.3

Default theme implementation to display CRM Core Individual data.

Available variables:

  • crm_core_individual: The CRM Core Individual entity with limited access to object properties and methods.
  • content: A list of contact fields. Use 'content' to print all fields, or print a subset such as 'content.field_example'.
  • view_mode: View mode; for example, "teaser" or "full".
  • attributes: HTML attributes for the containing element.

File

modules/crm_core_contact/templates/crm-core-individual.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display CRM Core Individual data.
  5. *
  6. * Available variables:
  7. * - crm_core_individual: The CRM Core Individual entity with limited access to
  8. * object properties and methods.
  9. * - content: A list of contact fields. Use 'content' to print all fields, or
  10. * print a subset such as 'content.field_example'.
  11. * - view_mode: View mode; for example, "teaser" or "full".
  12. * - attributes: HTML attributes for the containing element.
  13. *
  14. * @see template_preprocess_crm_core_individual()
  15. *
  16. * @ingroup themeable
  17. */
  18. #}
  19. <article{{ attributes }}>
  20. {% if content %}
  21. {{- content -}}
  22. {% endif %}
  23. </article>