commit 08122596981085639ec512ad317747c52e73d7de Author: Thomas Lattimore Date: Mon Apr 15 13:30:53 2013 -0400 Updating docs and removing is defined. diff --git a/core/modules/views/templates/views-view-fields.html.twig b/core/modules/views/templates/views-view-fields.html.twig index 2c11479..fbe1fdd 100644 --- a/core/modules/views/templates/views-view-fields.html.twig +++ b/core/modules/views/templates/views-view-fields.html.twig @@ -1,15 +1,15 @@ {# /** * @file - * Default simple view template to all the fields as a row. + * Default view template to all the fields as a row. * + * Available variables: * - view: The view in use. * - fields: an array of field objects. Each one contains: * - field.content: The output of the field. * - 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. Do not use - * var_export to dump this object, as it can't handle the recursion. + * - 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 inline_html to use. @@ -20,11 +20,14 @@ * configured element type. * - row: The raw result object from the query, with all data it fetched. * + * @see template_preprocess() + * @see template_preprocess_views_view_fields() + * * @ingroup views_templates */ #} {% for field in fields %} - {% if field.separator is defined %} + {% if field.separator %} {{ field.separator }} {% endif %} diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc index 3774c65..4e528f3 100644 --- a/core/modules/views/views.theme.inc +++ b/core/modules/views/views.theme.inc @@ -175,9 +175,9 @@ function template_preprocess_views_view(&$vars) { } /** - * Prepares variables for Views fields template. + * Prepares variables for Views fields templates. * - * Default template: views-view-fields.html.twig + * Default template: views-view-fields.html.twig. * * @param array $variables * An associative array containing: