You are here

function template_preprocess_views_view_field in Views (for Drupal 7) 8.3

Same name and namespace in other branches
  1. 6.3 theme/theme.inc \template_preprocess_views_view_field()
  2. 6.2 theme/theme.inc \template_preprocess_views_view_field()
  3. 7.3 theme/theme.inc \template_preprocess_views_view_field()

Process a single field within a view.

This preprocess function isn't normally run, as a function is used by default, for performance. However, by creating a template, this preprocess should get picked up.

File

theme/theme.inc, line 349
Preprocessors and helper functions to make theming easier.

Code

function template_preprocess_views_view_field(&$vars) {
  $vars['output'] = $vars['field']
    ->advanced_render($vars['row']);
}