{# a *-to-many collection of values #}
{% if value is iterable %}
{% if 'show' == view %}
{% if value|length > 0 %}
{% for item in value|slice(0, entity_config.show.max_results) %}
{% if link_parameters is defined %}
{# the empty string concatenation is needed when the primary key is an object (e.g. an Uuid object) #}
{% set primary_key_value = '' ~ attribute(item, link_parameters.primary_key_name) %}
{{ item }}
{% else %}
{{ item }}
{% endif %}
{% endfor %}
{% set _remaining_items = value|length - entity_config.show.max_results %}
{% if _remaining_items > 0 %}