This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/web/modules/contrib/webform/templates/webform-element-base-text.html.twig
2017-03-16 15:29:07 +00:00

24 lines
818 B
Twig

{#
/**
* @file
* Default theme implementation for a webform base element as text.
*
* Available variables:
* - element: The webform element.
* - title: The label for the element.
* - value: The content for the element.
* - options Associative array of options for element.
* - email: Flag to determine if element is for an email.
* - multiline: Flag to determine if value spans multiple lines.
* - first: Flag to determine if the element is that first element in its container.
* - last: Flag to determine if the element is that last element in its container.
*
* @see \Drupal\webform\WebformSubmissionViewBuilder::buildElements
*/
#}
{% if title %}{{ title }}{% if options.multiline %}:
{% else %}: {% endif %}{% endif %}{{ value }}
{% if options.multiline and not options.last %}
{% endif %}