{# Variables - activeEntity - translations - model - actionRoute - nameGetter (optional, default="getName") #} {%- apply spaceless -%} {%- set nameGetter = nameGetter|default('getName') -%} {%- if translations.children|length > 0 or (translations.parent and translations.parent.id is not same as activeEntity.id) -%} {%- endif -%} {%- endapply -%}