public function HubspotWebformHandler::updateLegalConsentSource in HubSpot 3.x
AJAX callback for hubspot form change event.
Parameters
array $form: Active form array.
\Drupal\Core\Form\FormStateInterface $form_state: Active form state.
Return value
array Render array.
File
- src/
Plugin/ WebformHandler/ HubspotWebformHandler.php, line 540
Class
- HubspotWebformHandler
- Webform submission remote post handler.
Namespace
Drupal\hubspot\Plugin\WebformHandlerCode
public function updateLegalConsentSource(array $form, FormStateInterface $form_state) : array {
return $form['settings']['legal_consent']['source'];
}