{# @var assets \EasyCorp\Bundle\EasyAdminBundle\Dto\AssetDto[] #}
{% for css_asset in assets %}
    {% if css_asset.preload %}
        <link rel="preload" href="{{ ea_call_function_if_exists('preload', css_asset.value, { as: 'style', nopush: css_asset.nopush }) }}"
        {% for attr, value in css_asset.htmlAttributes %}{{ attr }}="{{ value|e('html_attr') }}" {% endfor %}>
    {% else %}
        <link rel="stylesheet" href="{{ asset(css_asset.value) }}"
        {% for attr, value in css_asset.htmlAttributes %}{{ attr }}="{{ value|e('html_attr') }}" {% endfor %}>
    {% endif %}
{% endfor %}
