diff --git a/core/modules/views/templates/views-view-fields.html.twig b/core/modules/views/templates/views-view-fields.html.twig index af7819d..241c6f2 100644 --- a/core/modules/views/templates/views-view-fields.html.twig +++ b/core/modules/views/templates/views-view-fields.html.twig @@ -6,19 +6,19 @@ * Available variables: * - view: The view in use. * - fields: A list of fields, each one contains: - * - field.content: The output of the field. - * - field.raw: The raw data for the field, if it exists. + * - content: The output of the field. + * - raw: The raw data for the field, if it exists. * This is NOT output safe. - * - field.class: The safe class id to use. - * - field.handler: The Views field handler object controlling this field. - * - field.inline: Whether or not the field should be inline. - * - field.inline_html: either div or span based on the above flag. - * - field.wrapper_prefix: A complete wrapper containing the + * - class: The safe class id to use. + * - handler: The Views field handler object controlling this field. + * - inline: Whether or not the field should be inline. + * - inline_html: either div or span based on the above flag. + * - wrapper_prefix: A complete wrapper containing the * inline_html to use. - * - field.wrapper_suffix: The closing tag for the wrapper. - * - field.separator: an optional separator that may appear before a field. - * - field.label: The wrap label text to use. - * - field.label_html: The full HTML of the label to use including + * - wrapper_suffix: The closing tag for the wrapper. + * - separator: an optional separator that may appear before a field. + * - label: The wrap label text to use. + * - label_html: The full HTML of the label to use including * configured element type. * - row: The raw result object from the query, with all data it fetched. * @@ -29,9 +29,7 @@ */ #} {% for field in fields %} - {% if field.separator %} - {{ field.separator }} - {% endif %} + {{ field.separator }} {{ field.wrapper_prefix }} {{ field.label_html }} diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc index 634e0a2..00406a3 100644 --- a/core/modules/views/views.theme.inc +++ b/core/modules/views/views.theme.inc @@ -181,17 +181,17 @@ function template_preprocess_views_view(&$vars) { * * @param array $vars * An associative array containing: - * - view: The View object. - * - options: An array of options. Each option contains: - * - inline: An array that contains the fields that are to be - * displayed inline. - * - default_field_elements: If default field wrapper - * elements are to be provided. - * - hide_empty: Whether the field is to be hidden if empty. - * - element_default_classes: If the default classes are to be added. - * - seperator: A string to be placed between inline fields to keep - * them from squishing up next to each other. - * - row: An array containing information about the current row. +* - view: The View object. +* - options: An array of options. Each option contains: +* - inline: An array that contains the fields that are to be +* displayed inline. +* - default_field_elements: If default field wrapper +* elements are to be provided. +* - hide_empty: Whether the field is to be hidden if empty. +* - element_default_classes: If the default classes are to be added. +* - seperator: A string to be placed between inline fields to keep +* them from squishing up next to each other. +* - row: An array containing information about the current row. */ function template_preprocess_views_view_fields(&$vars) { $view = $vars['view'];