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.twigView source
- {#
- /**
- * @file
- * 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.
- */
- #}
-
- {% if title %}{{ title|upper }}
- {% for i in 1..title|length %}-{% endfor %}
- {% endif %}
-
- {{ value }}