- πΊπΈUnited States mortona2k Seattle
I'm having trouble doing anything with a list of items in an entity reference.
For example:
<div class="tags"> {% for item in items %} <span>#{{ item }}</span> {% endfor %} <div>
The twig formatter is just rendering the twig as a template:
$output = $twig_service->createTemplate($this->entity->data)->render([ 'items' => $items, 'langcode' => $langcode, ]);
Is it possible to render it using the field theme instead?