function template_preprocess_views_view_field
template_preprocess_views_view_field(&$variables)
Prepares variables for views field templates.
Default template: views-view-field.html.twig.
Parameters
array $variables: An associative array containing:
- field: The field handler object for the current field.
- row: Object representing the raw result of the SQL query for the current field.
- view: Instance of the ViewExecutable object for the parent view.
File
- core/modules/views/views.theme.inc, line 223
- Preprocessors and helper functions to make theming easier.
Code
function template_preprocess_views_view_field(&$variables) { $variables['output'] = $variables['field']->advancedRender($variables['row']); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!views!views.theme.inc/function/template_preprocess_views_view_field/8.1.x