| @@ -1562,7 +1562,20 @@ | ||
| 1562 | 1562 | 'form' => $formHtml, |
| 1563 | 1563 | 'email' => $recipient, |
| 1564 | 1564 | 'consent_text' => $consentText, |
| 1565 | 1565 | 'consent_field' => $consentField, |
| 1566 | + 'form_ref' => $this->resolveFormRef( $parameter ), | |
| 1566 | 1567 | ]; |
| 1568 | + } | |
| 1569 | + | |
| 1570 | + /** | |
| 1571 | + * Instance of the form inside the form id, stored as `form_ref`. | |
| 1572 | + * | |
| 1573 | + * Integrations that can host several forms under one form id (Elementor | |
| 1574 | + * pages) override this. Empty ties the opt-in to the whole form. | |
| 1575 | + * | |
| 1576 | + * @param array<string, mixed> $parameter The merged request parameters. | |
| 1577 | + */ | |
| 1578 | + protected function resolveFormRef( array $parameter ): string { | |
| 1579 | + return ''; | |
| 1567 | 1580 | } |
| 1568 | 1581 | } |