templates/default/components/organisms/widget-reference/widget-reference.html.twig line 1

Open in your IDE?
  1. {% if widget is defined %}
  2. {% set orginalWidgetID = widget %}
  3. {% set widget = getContent(widget) %}
  4. {% if widget.content.content is defined %}
  5. {# To stop a circle by self-referencing in the widget. #}
  6. {% if widget.content.content[0].widget|default(0) != orginalWidgetID %}
  7. {% include 'components/organisms/storyblok/storyblok.html.twig' with {
  8. 'componentData': widget.content.content,
  9. 'componentConfig': componentConfig|default([])
  10. }%}
  11. {% endif %}
  12. {% endif %}
  13. {% endif %}