src/Storefront/Resources/views/storefront/component/captcha/base.html.twig line 1

  1. {% block component_captcha_base %}
  2.     {% if formId is not defined %}
  3.         {% set formId = random() %}
  4.     {% endif %}
  5.     {% set captchas = config('core.basicInformation.activeCaptchasV2') %}
  6.     {% if captchas is defined and captchas is not empty %}
  7.         {% for capchaKey, captcha in captchas %}
  8.             {% if captcha.isActive %}
  9.                 {% sw_include '@Storefront/storefront/component/captcha/%s.html.twig'|format(capchaKey)
  10.                     with {
  11.                         additionalClass: additionalClass,
  12.                         formId: 'form-%s' | format(formId)
  13.                     }
  14.                 %}
  15.             {% endif %}
  16.         {% endfor %}
  17.     {% endif %}
  18. {% endblock %}