diff --git a/core/modules/views/templates/views-view-field.html.twig b/core/modules/views/templates/views-view-field.html.twig index a058548..04a20ac 100644 --- a/core/modules/views/templates/views-view-field.html.twig +++ b/core/modules/views/templates/views-view-field.html.twig @@ -3,10 +3,6 @@ * @file * Default theme implementation for a single field in a view. * - * It is not actually used in default views, as this is registered as a theme - * function which has better performance. For single overrides, the template is - * perfectly okay. - * * Available variables: * - view: The view that the field belongs to. * - field: The field handler that can process the input. @@ -24,4 +20,4 @@ * @ingroup themeable */ #} -{{ output }} +{{ output -}} diff --git a/core/modules/views/views.module b/core/modules/views/views.module index f6aca4c..57ca161 100644 --- a/core/modules/views/views.module +++ b/core/modules/views/views.module @@ -133,7 +133,6 @@ function views_theme($existing, $type, $theme, $path) { // Default view themes $hooks['views_view_field'] = $base + array( 'variables' => array('view' => NULL, 'field' => NULL, 'row' => NULL), - 'function' => 'theme_views_view_field', ); $hooks['views_view_grouping'] = $base + array( 'variables' => array('view' => NULL, 'grouping' => NULL, 'grouping_level' => NULL, 'rows' => NULL, 'title' => NULL), diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc index f34d076..a6a5f8b 100644 --- a/core/modules/views/views.theme.inc +++ b/core/modules/views/views.theme.inc @@ -250,19 +250,6 @@ function template_preprocess_views_view_grouping(&$variables) { } /** - * Display a single views field. - * - * Interesting bits of info: - * $field->field_alias says what the raw value in $row will be. Reach it like - * this: @code { $row->{$field->field_alias} @endcode - * - * @ingroup themeable - */ -function theme_views_view_field($variables) { - return $variables['output']; -} - -/** * Prepares variables for views field templates. * * Default template: views-view-field.html.twig.