Chris@0: {# Chris@0: /** Chris@0: * @file Chris@0: * Default theme override for comment fields. Chris@0: * Chris@0: * Available variables: Chris@0: * - attributes: HTML attributes for the containing element. Chris@0: * - label_hidden: Whether to show the field label or not. Chris@0: * - title_attributes: HTML attributes for the title. Chris@0: * - label: The label for the field. Chris@0: * - title_prefix: Additional output populated by modules, intended to be Chris@0: * displayed in front of the main title tag that appears in the template. Chris@0: * - title_suffix: Additional title output populated by modules, intended to Chris@0: * be displayed after the main title tag that appears in the template. Chris@0: * - comments: List of comments rendered through comment.html.twig. Chris@0: * - content_attributes: HTML attributes for the form title. Chris@0: * - comment_form: The 'Add new comment' form. Chris@0: * - comment_display_mode: Is the comments are threaded. Chris@0: * - comment_type: The comment type bundle ID for the comment field. Chris@0: * - entity_type: The entity type to which the field belongs. Chris@0: * - field_name: The name of the field. Chris@0: * - field_type: The type of the field. Chris@0: * - label_display: The display settings for the label. Chris@0: * Chris@0: * @see template_preprocess_field() Chris@0: * @see comment_preprocess_field() Chris@0: */ Chris@0: #} Chris@0: Chris@0: {% if comments and not label_hidden %} Chris@0: {{ title_prefix }} Chris@0: {{ label }} Chris@0: {{ title_suffix }} Chris@0: {% endif %} Chris@0: Chris@0: {{ comments }} Chris@0: Chris@0: {% if comment_form %} Chris@0: {{ 'Add new comment'|t }} Chris@0: {{ comment_form }} Chris@0: {% endif %} Chris@0: Chris@0: