{% props label = null, renderLabelRaw = false, icon = null, url = null, htmlAttributes = {}, renderAsForm = false, # if true, the item will be rendered as a
element (and POST method) instead of an (and GET method) showBlankIcons = true, # (this is mostly an internal option) if false, the blank icon will not be rendered when action icon is null %}
  • {% set formId = renderAsForm ? 'ea-form-' ~ random() ~ random() %} {% if renderAsForm %}
  • {% endif %}
    {% if icon %} {% elseif showBlankIcons %} {% endif %} {# don't use 'label is not empty' here; it'll trigger deprecation messages: Method TranslatableMessage::__toString() is deprecated #} {% set has_label = label is not same as(false) and label is not null and label is not same as('') %} {% if has_label %}{{ renderLabelRaw ? label|raw : label }}{% endif %}