- Issue created by @joao sausen
Trying to apply a captcha to the Cart form in commerce doesn't work, the form id is dynamic and we can't apply by form id because the views form is not an instance of BaseFormIdInterface, while still has a getBaseFormId() method.
Try to apply captcha to the cart form using the base form id (views_form_commerce_cart_form_default).
Instead of checking if the form is a instance of BaseFormIdInterface, just check if the method exists in the form.
Active
2.0
Code