You are here

yamlform-container-base-text.html.twig in YAML Form 8

Default theme implementation for a form base container as text.

Available variables:

  • element: The form element.
  • title: The label for the container.
  • value: The content for the container.
  • options Associative array of options for element.
    • email: Flag to determine if element is for an email.

File

templates/yamlform-container-base-text.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a form base container as text.
  5. *
  6. * Available variables:
  7. * - element: The form element.
  8. * - title: The label for the container.
  9. * - value: The content for the container.
  10. * - options Associative array of options for element.
  11. * - email: Flag to determine if element is for an email.
  12. */
  13. #}
  14. {% if title %}{{ title|upper }}
  15. {% for i in 1..title|length %}-{% endfor %}
  16. {% endif %}
  17. {{ value }}