2 Wrapper
source | link

If you do kint(), then it will try to output the raw data from the sql query and that is obviously to much for kint.

In this template there is not much going on and so there is not really much you can inspect with kint:

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

You can check the output with

{{ kint('output') }}

But this will only be the field content.

More interestingIf you want to put a wrapper around the field, that is template_preprocess_views_view_fieldsno problem, here a lot more thingsthat is, what this twig is used for in most cases:

<div class="myfield">{{ output -}}<div>

If you want to dodebug the variables, see what variables are available in the view templates, look in core/modules/views/views.theme.inc and inspect them one by one with kint.

If you do kint(), then it will try to output the raw data from the sql query and that is obviously to much for kint.

In this template there is not much going on and so there is not really much you can inspect with kint:

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

You can check the output with

{{ kint('output') }}

But this will only be the field content.

More interesting is template_preprocess_views_view_fields, here a lot more things to do.

If you do kint(), then it will try to output the raw data from the sql query and that is obviously to much for kint.

In this template there is not much going on and so there is not really much you can inspect with kint:

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

You can check the output with

{{ kint('output') }}

But this will only be the field content.

If you want to put a wrapper around the field, that is no problem, that is, what this twig is used for in most cases:

<div class="myfield">{{ output -}}<div>

If you want to debug the variables, see what variables are available in the view templates, look in core/modules/views/views.theme.inc and inspect them one by one with kint.

1
source | link

If you do kint(), then it will try to output the raw data from the sql query and that is obviously to much for kint.

In this template there is not much going on and so there is not really much you can inspect with kint:

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

You can check the output with

{{ kint('output') }}

But this will only be the field content.

More interesting is template_preprocess_views_view_fields, here a lot more things to do.