Drupal 8. Error join() Twig function I try to print field_tags inline and comma separated. My code in node.html.twig:

&lt;p&gt;{{ content.field_tags | join(', ') }}&lt;/p&gt;


This return error message: The website encountered an unexpected error. Please try again later.

Whats wrong? Help.
Anything in content is a render array, you can't use functions like that on those directory.

You can loop over it and print out each item, that works as it is then automatically rendered.