{% import '@OroUI/macros.html.twig' as UI %} {% set widgetComponentOptions = { 'type' : widgetType, 'options' : options } %} {%- set content = options.elementFirst ? render(options.url) : '' -%} {%- if content|length or not options.elementFirst -%} {% set separateLayout = options.separateLayout is not defined or options.separateLayout %} {% set separateLayoutContent %} {% if separateLayout %} data-layout="separate"{% endif %} {% endset %}